From 94d2c6848b17b4e14235e80e6fa6af37aa76217b Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Tue, 20 Dec 2016 13:07:07 +0000 Subject: maint: correct the version for the previous bug fix While st_size would have been incorrect for subsequent files since v7.1, it was only used since v8.24. * tests/misc/wc-files0.sh: s/7.1/8.24/ * NEWS: Likewise. Reported by Bernhard Voelker --- NEWS | 2 +- tests/misc/wc-files0.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 1ed5bd932..d0434d934 100644 --- a/NEWS +++ b/NEWS @@ -11,7 +11,7 @@ GNU coreutils NEWS -*- outline -*- 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] + [bug introduced in coreutils-8.24] * Noteworthy changes in release 8.26 (2016-11-30) [stable] diff --git a/tests/misc/wc-files0.sh b/tests/misc/wc-files0.sh index d92a01032..6565c5b16 100755 --- a/tests/misc/wc-files0.sh +++ b/tests/misc/wc-files0.sh @@ -48,7 +48,7 @@ printf '%s\0' "$nlname" | wc --files0-from=- > out || fail=1 printf '%s\n' "0 0 0 '1'$'\\n''2'" > exp || framework_failure_ compare exp out || fail=1 -# Ensure correct byte counts, which fails between v7.1 and v8.26 inclusive +# Ensure correct byte counts, which fails between v8.24 and v8.26 inclusive truncate -s1G wc.big || framework_failure_ touch wc.small || framework_failure_ printf '%s\0' wc.big wc.small | wc -c --files0-from=- >out || fail=1 -- cgit v1.2.3-54-g00ecf