1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-06 00:29:44 +02:00

*** empty log message ***

This commit is contained in:
Jim Meyering
2001-10-07 08:41:23 +00:00
parent 61b95dac69
commit 06ab933220
+17 -1
View 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.