]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: always punch holes that we make master
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Aug 2025 22:02:10 +0000 (16:02 -0600)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Aug 2025 22:58:21 +0000 (15:58 -0700)
commitb7fc76269bbc830bf96320cd5cca3cfd90d33f68
treee4ccfc21e7b0ba1953058fbdfc5f70d3d7c2c487
parent61a7382c8f0bebf5d08bcb9c5d21eff9eb382e7d
cp: always punch holes that we make

Problem reported by Jeremy Allison <https://bugs.gnu.org/79267>.
* src/copy.c (create_hole, sparse_copy): Omit arg PUNCH_HOLES,
as we always punch holes now.  All uses changed.
(lseek_copy): When calling sparse_copy, scan for holes when
sparse_mode == SPARSE_AUTO, as that means we are making holes.
(copy_reg): Always punch any hole made at end.
src/copy.c