freebsd-dev/usr.bin/grep
Ed Maste 5dff7be120 bsdgrep: fix EOF handling with --mmap
Rework part of the loop in grep_fgetln to return the rest of the line
and ensure that we still advance the buffer by the length of the rest
of the line.

PR:		165471
Submitted by:	Kyle Evans <kevans91@ksu.edu>
MFC after:	1 month
2017-02-19 17:23:27 +00:00
..
nls
regex Fix a segfault in bsdgrep when parsing the invalid extended regexps "?" 2016-08-02 20:25:22 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
file.c bsdgrep: fix EOF handling with --mmap 2017-02-19 17:23:27 +00:00
grep.1 mdoc: minor paragraph fixes. 2014-02-08 13:37:02 +00:00
grep.c Remove usage of _WITH_GETLINE from usr.bin 2016-07-30 01:07:47 +00:00
grep.h Various style(9) fixes and typos in grep, sort and patch. 2014-04-21 22:52:18 +00:00
Makefile Bump GCC max-inline-insns-single in libiconv_modules and grep 2015-07-26 00:11:04 +00:00
Makefile.depend new depends 2015-06-16 23:37:19 +00:00
queue.c grep: fix some memory leaks. 2014-07-17 15:59:13 +00:00
util.c Call basename() in a portable way. 2016-07-28 15:19:47 +00:00