]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sun, 7 Oct 2001 08:41:23 +0000 (08:41 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 7 Oct 2001 08:41:23 +0000 (08:41 +0000)
old/fileutils/ChangeLog

index e6f16adc00b3afe958a329365a2027e3741bcab1..c4046653c7a93e20dcbf55654d279116c6f77971 100644 (file)
@@ -1,7 +1,23 @@
-2001-10-06  Jim Meyering  <meyering@lucent.com>
+2001-10-07  Jim Meyering  <meyering@lucent.com>
 
        * Version 4.1.1.
 
+       Allow cp -a (and mv when it resorts to copying) to preserve
+       hard links that span command line arguments.
+
+       * src/cp.c (do_copy): Don't clear the hash table after processing
+       each command line argument.
+       * tests/cp/link-preserve: New test for the above.
+       * tests/cp/Makefile.am (TESTS): Add link-preserve.
+
+       * src/cp-hash.c (remember_copied): Make a local copy of the file name.
+       (src_to_dest_free): New function (to free the above).
+       (hash_init): Register src_to_dest_free.
+       * src/copy.c (copy_dir): Now that remember_copied copies the
+       file name, free the temporary `dst_path' allocated here.
+
+2001-10-06  Jim Meyering  <meyering@lucent.com>
+
        Convert du.c to use the functions in lib/hash.c, not private,
        slightly-modified copies of those that used to be in cp-hash.c.