]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: ensure -f --retry 'missing' handles truncation
authorPádraig Brady <P@draigBrady.com>
Wed, 9 Nov 2016 17:51:13 +0000 (17:51 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 9 Nov 2016 21:38:33 +0000 (21:38 +0000)
commit659060233ff2cff324be5cf4cc40b782068d45fd
treee3769014e9f5723a91836eaca3835ca80cc89f07
parent7fc7206b03a7f54b23904373ad397f693a5fae2a
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
src/tail.c
tests/tail-2/retry.sh