/[base]
ViewVC logotype

Revision 329606


Jump to revision: Previous Next
Author: asomers
Date: Mon Feb 19 22:09:49 2018 UTC (6 years, 4 months ago)
Changed paths: 2
Log Message:
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


Changed paths

Path Details
Directoryhead/usr.bin/tail/reverse.c modified , text changed
Directoryhead/usr.bin/tail/tests/tail_test.sh modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27