]> git.ipfire.org Git - thirdparty/coreutils.git/commit
split: fix --number=K/N to output correct part of file
authorPádraig Brady <P@draigBrady.com>
Mon, 25 Jan 2021 14:12:48 +0000 (14:12 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 25 Jan 2021 21:39:09 +0000 (21:39 +0000)
commitbb21daa125aeb4e32546309d370918ca47e612db
tree4ea33eb5f5e6cce1cf144535e5063c93058510d2
parenteebed78799a7996dd80b66c493a0fc199705dea3
split: fix --number=K/N to output correct part of file

This functionality regressed with the adjustments
in commit v8.25-4-g62e7af032

* src/split.c (bytes_chunk_extract): Account for already read data
when seeking into the file.
* tests/split/b-chunk.sh: Use the hidden ---io-blksize option,
to test this functionality.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/46048
NEWS
src/split.c
tests/split/b-chunk.sh