summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorStephane Chazelas <stephane.chazelas@gmail.com>2015-02-03 21:22:06 +0000
committerPádraig Brady <P@draigBrady.com>2015-03-31 11:55:32 +0100
commitd313a0b24234d3366ec263111469f219f5b4634f (patch)
tree60f0b5c02f43a38060ee21933c06aae4d2361d74 /NEWS
parent52209ee547476aba6827848705cfa15484df78bd (diff)
downloadcoreutils-d313a0b24234d3366ec263111469f219f5b4634f.tar.xz
tail: fix -f to follow changes after a rename
* src/tail.c (tail_forever_inotify): Only monitor write()s and truncate()s to files in --follow=descriptor mode, thus avoiding the bug where we removed the watch on renamed files. Also adjust the inotify event processing code that is now significant only in --follow=name mode. * tests/tail-2/F-vs-rename.sh: Improve this existing test by running in both polling and inotify modes. * tests/tail-2/f-vs-rename.sh: A new test based on the existing one. * tests/local.mk: Reference the new test. * NEWS: Mention the bug. Fixes http://bugs.gnu.org/19760
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 81031c6b0..4b12e4629 100644
--- a/NEWS
+++ b/NEWS
@@ -39,6 +39,9 @@ GNU coreutils NEWS -*- outline -*-
resources with many files, or with -F if files were replaced many times.
[bug introduced in coreutils-7.5]
+ tail -f again follows changes to a file after it's renamed.
+ [bug introduced in coreutils-7.5]
+
** New features
chroot accepts the new --skip-chdir option to not change the working directory