diff options
| author | Pádraig Brady <P@draigBrady.com> | 2015-07-01 22:37:26 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2015-07-02 03:53:59 +0100 |
| commit | a645ce6c04719ad616ecd3bd7a16cd14772d6a74 (patch) | |
| tree | b223ae17b9c075d76178b4ee1b02b232012c77ae /scripts/git-hooks/commit-msg | |
| parent | build: update gnulib submodule to latest (diff) | |
| download | coreutils-a645ce6c04719ad616ecd3bd7a16cd14772d6a74.tar.gz coreutils-a645ce6c04719ad616ecd3bd7a16cd14772d6a74.zip | |
wc: fix reading of /proc files on aarch64
tests/misc/wc-proc.sh fails when the page size is 64K
* src/wc.c (wc): The lseek adjustment should be based on st_blksize,
rather than on the internal buffer size. This is significant on
aarch64 where st_blksize in /proc is the 64K (the page size) and
thus larger than the internal buffer.
* src/split.c (main): Even though the similar processing is done
on the internal buffer size, that's based on st_blksize and
so fine in this regard. Add an assert to enforce this.
Avoid this path for the undocumented ---io-blksize option.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
