]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the behaviour of -F slightly; it now persists (forever) in
authorBrian Somers <brian@FreeBSD.org>
Fri, 5 Jun 2009 09:08:53 +0000 (09:08 +0000)
committerBrian Somers <brian@FreeBSD.org>
Fri, 5 Jun 2009 09:08:53 +0000 (09:08 +0000)
commit22da50cfc88081e487465042b96f969349ecb6c5
treee543b101f94f862f5071b48f0a4c466e2afa6f25
parentca67260eba65dc34291d094e40466327479d29de
Change the behaviour of -F slightly; it now persists (forever) in
trying to open files rather than giving up when it encounters an
error.  ENOENT errors are not reported.

As a result, files that are moved away then recreated are not at
risk of being 'lost' to tail.  Files that are recreated and
temporarily have unreadable permissions will be shown when they
are fixed.

This behaviour is consistent with the GNU version of tail but
without the verbiage that goes with the GNU version.

This change also fixes error messages accompanying -f and -F.
They no longer report problems with (null)!

MFC after: 3 weeks
usr.bin/tail/extern.h
usr.bin/tail/forward.c
usr.bin/tail/misc.c
usr.bin/tail/read.c
usr.bin/tail/reverse.c
usr.bin/tail/tail.1
usr.bin/tail/tail.c