]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Fri, 12 Mar 2004 11:53:57 +0000 (11:53 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 12 Mar 2004 11:53:57 +0000 (11:53 +0000)
ChangeLog

index 97821efd02b76d2e5f4025445cb9921336136799..22ebc437cd3c25489ef82f4c8178a2bb75552933 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,25 @@
-2004-03-11  Jim Meyering  <jim@meyering.net>
+2004-03-12  Jim Meyering  <jim@meyering.net>
 
        * Version 5.2.1.
 
+       Sometimes, when source and destination partition are different,
+       mv mistakenly fails to preserve a hard link.  Reported by IIDA Yosiaki.
+
+       * src/copy.c: When moving a set of N hard-linked files between
+       partitions, via two or more command line arguments where the
+       command line argument containing the Nth link contains no other
+       link to that same file, mv would mistakenly copy the file, rather
+       than hard-linking it to the other(s).  That happens because when the
+       final link is processed, its link count has been reduced to 1 since
+       the other links have been `copied' to the destination partition
+       and the source links have been removed.
+       (copy_internal): When in move mode, use the source dev/inode
+       pair to look up destination name even when st_nlink == 1.
+       * src/cp-hash.c (src_to_dest_lookup): New function.
+       * src/cp-hash.h (src_to_dest_lookup): Add prototype.
+
+2004-03-11  Jim Meyering  <jim@meyering.net>
+
        * Use automake-1.8.3.  Regenerate dependent files.
 
 2004-03-10  Jim Meyering  <jim@meyering.net>