summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorWilliam R. Fraser <wfraser@codewise.org>2016-03-20 17:44:09 -0700
committerPádraig Brady <P@draigBrady.com>2016-12-19 20:13:51 +0000
commit9944e4763bb178852727812e8b188540772384e2 (patch)
tree02803ee9f30391c6c9c1520fd61fe7f57099af95 /NEWS
parentf071b04afaeefbf6c37a00986fec02b8df5e9560 (diff)
downloadcoreutils-9944e4763bb178852727812e8b188540772384e2.tar.xz
wc: fix wrong byte counts when using --files-from0
* src/wc.c (main): Reset fstatus[0].failed between files when reusing the fstatus[0] entry in --files-from0 mode. This ensures a stat() is done for each file, avoiding incorrect counts and redundant reading. * NEWS: Mention the bug fix. * tests/misc/wc-files0.sh: Add a test case. Fixes http://bugs.gnu.org/23073
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 179c19b4d..1ed5bd932 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,11 @@ GNU coreutils NEWS -*- outline -*-
158909489063877810457 and 222087527029934481871.
[bug introduced in coreutils-8.20]
+ 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.
+ [bug introduced in coreutils-7.1]
+
* Noteworthy changes in release 8.26 (2016-11-30) [stable]