]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cut: improve large file support on 32 bit
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 26 Mar 2018 11:37:12 +0000 (13:37 +0200)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Mar 2018 07:00:09 +0000 (00:00 -0700)
commitd1a754c827251d224ae5b7dda7f8d8c26d5940b5
treeb62ca92bc62ff8393ee029167cb2d26bdfb8c626
parent30e91a10ead098dfbd997fb1b43431bb0f1edd4c
cut: improve large file support on 32 bit

Increase max range from SIZE_MAX to UINTMAX_MAX, which will
allow cut to support line lengths up to the max file size
on all systems. The inherent SIZE_MAX limitation in cut was
removed with the enhancements in https://bugs.gnu.org/13127.
Also numfmt gets similarly increased --field ranges due to
shared code.

* src/cut.c: s/size_t/uintmax_t/.
* src/numfmt.c: Likewise.
* src/set-fields.c: Likewise.
* src/set-fields.h: Likewise.
* tests/misc/cut-huge-range.sh: Adjust accordingly.
* tests/misc/numfmt.pl: Likewise.
* NEWS: Mention the improvement.
NEWS
src/cut.c
src/numfmt.c
src/set-fields.c
src/set-fields.h
tests/misc/cut-huge-range.sh
tests/misc/numfmt.pl