diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-09-13 17:31:24 +0200 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-11-27 01:40:08 +0000 |
commit | ba6582e95ce2a041423e1ff34c93abe7b4702332 (patch) | |
tree | b9d30c8ff7fc2a00e80b12c5b7f15f318ec02b98 /NEWS | |
parent | 799e10f3619ea7949a4f606b2f29b662daf31e3c (diff) | |
download | coreutils-ba6582e95ce2a041423e1ff34c93abe7b4702332.tar.xz |
tail: improve inotify handling of symlinks
Previous behavior failed to read contents of a (re)appearing file,
when symlinked by tail's watched file. Also we now diagnose other
edge cases when running in inotify mode, where an initially
missing or regular file changes to a symlink.
* src/tail.c (main): If any arg is a symlink, use polling mode.
(recheck): Diagnose the edge case where a symlink appears during
inotify processing.
* tests/tail-2/symlink.sh: Test the fix. Mention the edge cases.
* tests/local.mk: Reference the new test.
* NEWS: Mention the fix.
Reported by: Ondrej Oprala
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -43,8 +43,11 @@ GNU coreutils NEWS -*- outline -*- by the alignment bug introduced in coreutils-6.0] tail --retry -f now waits for the files specified to appear. Before, tail - would immediately exit when such a file is inaccessible during the initial - open. + would immediately exit when such a file is initially inaccessible. + [This bug was introduced when inotify support was added in coreutils-7.5] + + tail -F has improved handling of symlinks. Previously tail didn't respond + to the symlink target (re)appearing after being (re)created. [This bug was introduced when inotify support was added in coreutils-7.5] ** New features |