diff options
author | Jim Meyering <jim@meyering.net> | 2007-10-02 11:10:22 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-10-02 11:20:19 +0200 |
commit | 1b8c8befd96bb1ebf02eeade5029a81e1b6c4dc1 (patch) | |
tree | dafaac59ecd7202330dfe333b1eae0f75687bb18 /ChangeLog | |
parent | 65ee3d963014a4c93dcf17886a7da2a8c43277b2 (diff) | |
download | coreutils-1b8c8befd96bb1ebf02eeade5029a81e1b6c4dc1.tar.xz |
Never copy through a symlink that cp has just created.
* src/copy.c (copy_internal): When same-file detection requires
'stat'ing the destination file, also 'lstat' it and ensure that
it wasn't the destination of a preceding copy operation.
This bug was introduced on 2007-06-18.
* tests/cp/abuse: New test for the above.
* tests/cp/Makefile.am (TESTS): Add abuse.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +2007-10-02 Jim Meyering <jim@meyering.net> + + Never copy through a symlink that cp has just created. + * src/copy.c (copy_internal): When same-file detection requires + 'stat'ing the destination file, also 'lstat' it and ensure that + it wasn't the destination of a preceding copy operation. + This bug was introduced on 2007-06-18. + * tests/cp/abuse: New test for the above. + * tests/cp/Makefile.am (TESTS): Add abuse. + 2007-09-30 Jim Meyering <jim@meyering.net> cp: do not abbreviate in --help output. |