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-08-30 17:25:20 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-09-22 13:27:57 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-09-07 10:45:22 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-10-02 11:20:19 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2005-06-02 05:17:24 +00:00
2007-09-30 09:58:24 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-22 16:59:40 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-11 08:32:50 +02:00
2007-08-22 16:59:40 +02:00
2007-08-25 20:47:03 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-11 08:32:50 +02:00
2007-08-30 17:12:56 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2005-07-18 07:52:37 +00:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-09-29 07:53:49 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-20 17:03:45 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2003-07-06 06:08:40 +00:00
2007-08-30 17:12:56 +02:00
2007-08-23 14:00:35 +02:00
2007-08-30 17:12:56 +02:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
2007-09-05 10:58:45 +02:00
1993-06-16 15:24:57 +00:00
2007-09-01 11:22:30 +02:00
2007-08-22 16:59:40 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-20 17:03:45 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-24 14:51:55 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-11 08:32:50 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-28 11:23:27 +02:00
2007-09-22 13:27:57 +02:00
2007-07-23 14:35:58 +02:00
2007-08-20 17:03:45 +02:00
2007-07-23 14:35:58 +02:00
2007-03-29 21:37:06 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-11 08:32:50 +02:00
2007-07-23 14:35:58 +02:00
2007-08-28 11:23:27 +02:00
2007-07-23 14:35:58 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-21 09:01:07 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-29 00:14:23 +02:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00