diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-09-17 15:29:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-09-17 15:29:20 +0000 |
commit | 0dfa92616ec7892ce1d1e19ba6849357b0c550e7 (patch) | |
tree | 4a632a04faa79a21e170051514bc742f3110f5fd /usr.sbin/btctl | |
parent | b7f880ec6f58461e81df2c30565b3d27cf217081 (diff) |
Rewrite the main loop of the "sed s/..." command, to fix multiple
issues regarding the replacement of zero-length strings.
This commit brings back rev. 1.16, but without the regression that
forced the backout: No NUL bytes will be output now, not even when
the input file lacks a trailing newline character and there is a
zero-length match at the end.
OK otto@ deraadt@;
and naddy@ (who originally found the regression) checked that
the regression is indeed fixed.
Diffstat (limited to 'usr.sbin/btctl')
0 files changed, 0 insertions, 0 deletions