]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: don’t create empty file if cannot clone
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Jul 2022 14:34:17 +0000 (09:34 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Jul 2022 15:02:46 +0000 (10:02 -0500)
commit1edda5009b1118ee28faa1b30154f5d9011780ba
tree41944b7df08eb84d7003d8cdf02e045bba4f0c61
parentfa332d998c635819840bdde16b382066961cb99d
cp: don’t create empty file if cannot clone

* src/copy.c (copy_reg): With --reflink=always, if FICLONE fails
on a file we just created, clean up by removing the file (Bug#56391).
src/copy.c