]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: revert unnecessary FreeBSD workaround
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Oct 2021 17:00:10 +0000 (10:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Oct 2021 17:04:54 +0000 (10:04 -0700)
commit1753012b8d8cdd0817155f4756f5bf9bfe347816
treeb93a6ae5dc676ae65d0dcf1e0f969c27736d4217
parenta9e31457bf6a63072b54a9324cdf59a09441a21f
cp: revert unnecessary FreeBSD workaround

That was a false alarm due to a bug in FreeBSD 9.1 truss;
see Pádraig Brady’s report (Bug#51433#29).
* src/copy.c (lseek_copy, infer_scantype): Don’t bother checking
whether lseek returned -1.  This doesn’t entirely revert the
previous change, as it keeps the code simplification of the
previous change while reverting the check for -1.
src/copy.c