diff options
author | Pádraig Brady <P@draigBrady.com> | 2022-12-28 14:04:19 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2022-12-29 14:15:54 +0000 |
commit | 266b7cbc846f91e5f48085c7de68682f5841e2a0 (patch) | |
tree | d5c1f183ed8622126e4d739bdf0901733913b74b /NEWS | |
parent | 4bf990bf658d4070e74fc64b0fafef4d305af8f4 (diff) | |
download | coreutils-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-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |