diff options
author | Jim Meyering <jim@meyering.net> | 2001-01-10 11:56:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-01-10 11:56:59 +0000 |
commit | d882d1d100b3bf4929ea04816fbf2fb988047931 (patch) | |
tree | c143135232f1854261c0127f458e1c7f489da222 | |
parent | b6e29912beb5343916d20e21fa1bb45628a0dfbf (diff) | |
download | coreutils-d882d1d100b3bf4929ea04816fbf2fb988047931.tar.xz |
*** empty log message ***
-rw-r--r-- | old/fileutils/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 30b54f53e..012fe04a8 100644 --- a/old/fileutils/ChangeLog +++ b/old/fileutils/ChangeLog @@ -2,6 +2,17 @@ * Version 4.0.36. + * src/copy.c (copy_internal): Add a comment. + Set *copy_into_self in the new code that detects that. + Make diagnostic more consistent: s/won't/will not/. + [move_mode, copy_into_self]: Give a diagnstic here, now that + we have the top_level_* globals. Remove the corresponding diagnostic + from mv.c. + Add a FIXME comment. + * src/mv.c (do_move): Remove diagnostic, now that copy.c issues it. + Set `fail' to nonzero in the primary `if (copy_into_self)' block + rather than in its own tiny one below. + * src/copy.c (copy_internal): Don't allow cp (or mv, when working across a partition boundary) to overwrite a non-directory with a directory. Reported by Michael J. Croghan. @@ -14,6 +25,16 @@ * src/copy.c (top_level_src_path, top_level_dst_path): New globals. (copy_internal): Use them. (copy): Set them. + * src/cp-hash.c [struct entry] (node): Describe how it's used, + now that we've overloaded it, in order to detect and diagnose + the copying-directory-into-self problem. + (new_file): Remove global. + (htab): Declare global to be static. + (remember_created): Insert file name instead of dummy pointer, so + that copy.c can use the just-created directory name to detect + the copying-directory-into-self problem. + * tests/cp/into-self: New test for the above. + * tests/cp/Makefile.am (TESTS): Add into-self. 2001-01-07 Jim Meyering <meyering@lucent.com> |