]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(copy_internal): Move the block that sets `earlier_file'
authorJim Meyering <jim@meyering.net>
Sat, 30 Mar 2002 07:10:57 +0000 (07:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 30 Mar 2002 07:10:57 +0000 (07:10 +0000)
commit9211474a6ee37178563544d882d81bc9c74fbba3
tree470c9f9a6a42a3e563a1ba50ec071cbd9858c318
parentca76cd842a396fd981299e6ca35fd8c46cd181cf
(copy_internal): Move the block that sets `earlier_file'
down to just before the first use of that variable.  Otherwise, it was
possible to make mv (and probably cp, too) malfunction when copying
hard-linked files into a directory containing at least one of the
source file names.  Call forget_created everywhere thereafter where
this function returns without creating a destination file that might
subsequently be linked.  Reported by Iida Yosiaki.
src/copy.c