From 4d45722d1160a04e4d26fd812da4e0140ad3550c Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Wed, 9 Nov 2016 19:28:23 +0000 Subject: tail: only retry file open if --retry specifed * src/tail.c (tail_file): On failure to open a file, set ignore=true when --retry is not specified. * tests/tail-2/assert-2.sh: Adjust to the new behavior. * tests/tail-2/retry.sh: Add a test case. Also change from `tail ... && fail=1` to the more robust `returns_ 1 ...` construct which detects segfaults etc. * NEWS: Document the fix. --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index d88fbd9d4..6dd6772db 100644 --- a/NEWS +++ b/NEWS @@ -63,6 +63,10 @@ GNU coreutils NEWS -*- outline -*- Previously truncation was ignored thus not outputting new data in the file. [bug introduced in coreutils-5.3.0] + tail -f will no longer continually try to open inaccessible files, + only doing so if --retry is specified. + [This bug was present in "the beginning".] + yes now handles short writes, rather than assuming all writes complete. [bug introduced in coreutils-8.24] -- cgit v1.2.3-54-g00ecf