remap: fix timeouts for "g", add a "gg" flag to match sed s///g
commitac7f98e4d8036d6194b41920e46e37be40b496a4
authorH. Peter Anvin <hpa@zytor.com>
Tue, 11 Jun 2024 03:19:55 +0000 (10 20:19 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 11 Jun 2024 03:24:46 +0000 (10 20:24 -0700)
tree3f9c105d0e9a6c86e3e1a09cd14e32b120777ab1
parent74c5d8a02030a0e598f6dd7db0c122d1b38bd904
remap: fix timeouts for "g", add a "gg" flag to match sed s///g

Make sure that when using the global option, we still bump the deadman
timer.

The "g" option really should only have applied to the right-hand
unmatched part of the string, like in sed. Add a "gg" option which
does that.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
tftpd/remap.c
tftpd/tftpd.8.in