diff options
author | Jim Meyering <jim@meyering.net> | 2006-08-27 19:41:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-08-27 19:41:04 +0000 |
commit | 520a954d7e8823a4c385c662b3b571ae53f125ea (patch) | |
tree | d62505143c782bebd736615f4d44a27db01e0694 /ChangeLog | |
parent | 07446625096ddeb9246fb36572d5fe644f56cd1f (diff) | |
download | coreutils-520a954d7e8823a4c385c662b3b571ae53f125ea.tar.xz |
* src/copy.c (copy_internal): Don't make a backup if the last
component of the source name is "." or "..".
Reported by Andreas Schwab in https://savannah.gnu.org/bugs/?17540.
* tests/cp/src-base-dot: New file. Test for the above fix.
* tests/cp/Makefile.am (TESTS): Add src-base-dot.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2006-08-27 Jim Meyering <jim@meyering.net> + * src/copy.c (copy_internal): Don't make a backup if the last + component of the source name is "." or "..". + Reported by Andreas Schwab in https://savannah.gnu.org/bugs/?17540. + * tests/cp/src-base-dot: New file. Test for the above fix. + * tests/cp/Makefile.am (TESTS): Add src-base-dot. + * src/system.h (DOT_OR_DOTDOT): Remove macro. Rewrite as a... (dot_or_dotdot): ...new static inline function. * src/remove.c (rm_1): Reflect this renaming. |