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 /tests/local.mk | |
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 'tests/local.mk')
-rw-r--r-- | tests/local.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/local.mk b/tests/local.mk index 59bf07f01..2dd7e2063 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -388,7 +388,8 @@ all_tests = \ tests/misc/uniq-perf.sh \ tests/misc/xattr.sh \ tests/tail-2/wait.sh \ - tests/tail-2/retry.sh \ + tests/tail-2/retry.sh \ + tests/tail-2/symlink.sh \ tests/chmod/c-option.sh \ tests/chmod/equal-x.sh \ tests/chmod/equals.sh \ |