From 659060233ff2cff324be5cf4cc40b782068d45fd Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Wed, 9 Nov 2016 17:51:13 +0000 Subject: tail: ensure -f --retry 'missing' handles truncation * src/tail.c (tail_forever): The BLOCKING optimization is only enabled for non regular files (which can't be truncated), so ensure we don't enable that unless we've a valid file descriptor. * tests/tail-2/retry.sh: Add a test case. * NEWS: Mention the bug fix. --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index c223b562d..d88fbd9d4 100644 --- a/NEWS +++ b/NEWS @@ -59,6 +59,10 @@ GNU coreutils NEWS -*- outline -*- file systems that misreport file sizes through stale metadata. [This bug was present in "the beginning" but exacerbated in coreutils-8.24] + tail -f --retry 'missing file' will now process truncations of that file. + Previously truncation was ignored thus not outputting new data in the file. + [bug introduced in coreutils-5.3.0] + yes now handles short writes, rather than assuming all writes complete. [bug introduced in coreutils-8.24] -- cgit v1.2.3-54-g00ecf