]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 30 Mar 2002 07:11:34 +0000 (07:11 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 30 Mar 2002 07:11:34 +0000 (07:11 +0000)
old/fileutils/ChangeLog

index 99ce6c276cbfd707b6e22206bf2780cd329681b8..37546b5b86f1d2c904bf15714327e073fe27b56b 100644 (file)
@@ -1,7 +1,23 @@
-2002-03-17  Jim Meyering  <meyering@lucent.com>
+2002-03-30  Jim Meyering  <meyering@lucent.com>
 
        * Version 4.1.8.
 
+       * src/copy.c (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/cp-hash.c (forget_created): New function.
+       * src/cp-hash.h (forget_created): Prototype.
+
+       * tests/mv/i-link-no: New test for the above.
+       Based on an example from Iida Yosiaki.
+       * tests/mv/Makefile.am (TESTS): Add i-link-no.
+
+2002-03-17  Jim Meyering  <meyering@lucent.com>
+
        * src/copy.c (copy_internal) [move_mode]: Give a better diagnostic,
        by using errno from the failed unlink, when a cross-device `mv'
        fails, e.g., because the destination cannot be unlinked.