]> git.ipfire.org Git - thirdparty/coreutils.git/commit
copy: handle ENOTSUP from copy_file_range()
authorPádraig Brady <P@draigBrady.com>
Sat, 8 May 2021 16:18:54 +0000 (17:18 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 12 May 2021 21:14:11 +0000 (22:14 +0100)
commit8ec0d1799e19a079b8a661c6bb69f6c58e52f1aa
treecc7ee584beffe7d1eebe5d19a7a369c2fb76620e
parente35e4d17576d77079525fba61547d46c0b17bb63
copy: handle ENOTSUP from copy_file_range()

* src/copy.c (sparse_copy): Ensure we fall back to
a standard copy if copy_file_range() returns ENOTSUP.
This generally is best checked when checking ENOSYS,
but it also seems to be a practical concern on Centos 7,
as a quick search gave https://bugzilla.redhat.com/1840284
src/copy.c