summaryrefslogtreecommitdiff
path: root/tests/misc/selinux
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-10-02 11:10:22 +0200
committerJim Meyering <jim@meyering.net>2007-10-02 11:20:19 +0200
commit1b8c8befd96bb1ebf02eeade5029a81e1b6c4dc1 (patch)
treedafaac59ecd7202330dfe333b1eae0f75687bb18 /tests/misc/selinux
parent65ee3d963014a4c93dcf17886a7da2a8c43277b2 (diff)
downloadcoreutils-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 'tests/misc/selinux')
0 files changed, 0 insertions, 0 deletions