From 06ab93322091cab4f80512daa3365577514aa37b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 7 Oct 2001 08:41:23 +0000 Subject: *** empty log message *** --- old/fileutils/ChangeLog | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index e6f16adc0..c4046653c 100644 --- a/old/fileutils/ChangeLog +++ b/old/fileutils/ChangeLog @@ -1,7 +1,23 @@ -2001-10-06 Jim Meyering +2001-10-07 Jim Meyering * 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 + 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. -- cgit v1.2.3-70-g09d2