Jim Meyering
1b8c8befd9
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-10-02 11:20:19 +02:00
..
2007-10-02 11:20:19 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:39 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-10-02 11:20:19 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00