From 97ce436ba55e7b3012b3615793d29aefa131a3fd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 12 Mar 2004 11:53:57 +0000 Subject: [PATCH] *** empty log message *** --- ChangeLog | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 97821efd0..22ebc437c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,25 @@ -2004-03-11 Jim Meyering +2004-03-12 Jim Meyering * 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 + * Use automake-1.8.3. Regenerate dependent files. 2004-03-10 Jim Meyering -- 2.11.4.GIT