freebsd-dev/usr.bin/grep
Kyle Evans e898a3af97 grep: properly switch EOL indicator with -z
-z is supposed to use only the NUL byte as EOL, but we were
inadvertently using both newline and NUL due to REG_NEWLINE in cflags.

The odds of anyone relying on this bsdgrep-specific bug are quite low,
so let's just fix it.  At least one port in the wild has been reported
to expect the intended behavior.

Reported by:	Hill Ma <maahiuzeon@gmail.com>
Triaged by:	the self-proclaimed peanut gallery on Discord
2023-01-03 23:37:54 -06:00
..
tests grep: properly switch EOL indicator with -z 2023-01-03 23:37:54 -06:00
file.c usr.bin/grep: Fix Address OOB read error 2021-02-09 17:13:32 +00:00
grep.1 grep.1: Add an ENVIRONMENT section 2022-12-18 08:22:24 +01:00
grep.c grep: properly switch EOL indicator with -z 2023-01-03 23:37:54 -06:00
grep.h grep: replace the internal queue with a ring buffer 2020-12-09 05:27:45 +00:00
Makefile pkgbase: Put more binaries/lib in runtime 2021-12-21 10:17:27 +01:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
queue.c usr.bin/grep: Fix Address OOB read error 2021-02-09 17:13:32 +00:00
util.c grep: fix combination of quite and count flag 2021-07-09 14:09:14 +02:00
zgrep.1 Fix some regressions with the zgrep(1) wrapper. 2020-07-20 23:57:53 +00:00
zgrep.sh Fix zgrep --version 2021-04-18 10:20:11 +02:00