HomeFreeBSD

MFC r329606:

Description

MFC r329606:

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
Sponsored by: Spectra Logic Corp

Details

Provenance
asomersAuthored on
Parents
rS332609: MFC r330710, r330718-r330720
Branches
Unknown
Tags
Unknown