freebsd-skq/usr.bin/tail
asomers 33f2c96211 tail: fix "tail -r" for piped input that begins with '\n'
A subtle logic bug, probably introduced in r311895, caused tail to print the
first two lines of piped input in forward order, if the very first character
was a newline.

PR:		222671
Reported by:	Jim Long <freebsd-bugzilla@umpquanet.com>, pprocacci@gmail.com
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
2018-02-19 22:09:49 +00:00
..
tests tail: fix "tail -r" for piped input that begins with '\n' 2018-02-19 22:09:49 +00:00
extern.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
forward.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
misc.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
read.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
reverse.c tail: fix "tail -r" for piped input that begins with '\n' 2018-02-19 22:09:49 +00:00
tail.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tail.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00