]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: adjust lseek_copy to handle non zero offsets
authorPádraig Brady <P@draigBrady.com>
Mon, 3 Nov 2025 22:42:22 +0000 (22:42 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 4 Nov 2025 16:32:16 +0000 (16:32 +0000)
commit4c0cf3864a74b4bbb6c51e7abecddbde5cc6924e
tree82366a38896168e09ecd6f349d77a3cc7eae301f
parentd36d0f28a4b4dbe4b44230e0877a2e15a4690d32
maint: adjust lseek_copy to handle non zero offsets

* src/copy-file-data.c (lseek_copy): hole_start is initialized
only when ext_start == ipos.
(infer_scantype): Update the hole_start initialization to
the more logically correct POS, even though that init
is only needed to suppress a -Wmaybe-uninitialized warning.
Note gcc 15.2 at least doesn't seem to need that suppression.
src/copy-file-data.c