summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2022-12-28 14:04:19 +0000
committerPádraig Brady <P@draigBrady.com>2022-12-29 14:15:54 +0000
commit266b7cbc846f91e5f48085c7de68682f5841e2a0 (patch)
treed5c1f183ed8622126e4d739bdf0901733913b74b /NEWS
parent4bf990bf658d4070e74fc64b0fafef4d305af8f4 (diff)
downloadcoreutils-266b7cbc846f91e5f48085c7de68682f5841e2a0.tar.gz
wc: fix regression determining file size
* src/wc.c (wc): Use off_t rather than size_t when calculating where to seek to, so that we don't seek to a too low offset on systems where size_t < off_t, which would result in many read() calls to determine the file size. * tests/misc/wc-proc.sh: Add a test case sufficient for 32 bit systems at least. * NEWS: Mention the bug fix. Reported at https://bugs.debian.org/1027101
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b6b5201e7..7fb8c5363 100644
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,11 @@ GNU coreutils NEWS -*- outline -*-
and the system supported set of valid speeds.
[This bug was present in "the beginning".]
+ `wc -c` will again efficiently determine the size of large files
+ on all systems. It no longer redundantly reads data from certain
+ sized files larger than SIZE_MAX.
+ [bug introduced in coreutils-8.24]
+
** Changes in behavior
'cp --reflink=always A B' no longer leaves behind a newly created