From 1ddcd24d52afbe9af1d7d8712674eed2221cef97 Mon Sep 17 00:00:00 2001 From: Janne Snabb Date: Mon, 6 Feb 2017 23:15:42 -0800 Subject: tail: fix output of redundant headers when resuming * src/tail.c (check_fspec): Only enable printing of the file header if we've actually read some data and this is a new file. Also move printing of the file header to... (dump_remainder): ...here, to allow printing only when data read. * tests/tail-2/overlay-headers.sh: A new test for suspension and resumption of tail. * tests/local.mk: Reference the new test. * NEWS: Mention the fix. Fixes http://bugs.gnu.org/23539 --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 24082f5be..9528f89e0 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,10 @@ GNU coreutils NEWS -*- outline -*- 158909489063877810457 and 222087527029934481871. [bug introduced in coreutils-8.20] + tail no longer prints redundant file headers with interleaved inotify events, + which could be triggered especially when tail was suspended and resumed. + [bug introduced with inotify support added in coreutils-7.5] + wc --bytes --files0-from now correctly reports byte counts. Previously it may have returned values that were too large, depending on the size of the first file processed. -- cgit v1.2.3-54-g00ecf