]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: defend better against FreeBSD 9.1 zfs bug
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Oct 2021 01:01:34 +0000 (18:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Oct 2021 01:23:54 +0000 (18:23 -0700)
commita9e31457bf6a63072b54a9324cdf59a09441a21f
treef34b21d0c1f259cebb1d38be393f0652d99bbdcd
parentf60a3981c31519d03fd2be19e006349ea00b4464
cp: defend better against FreeBSD 9.1 zfs bug

Problem reported by Pádraig Brady (Bug#51433#14).
* src/copy.c (lseek_copy, infer_scantype): Report an error if
lseek with SEEK_DATA or SEEK_HOLE returns less than -1,
as this is an lseek bug.
src/copy.c