bug-fix: cp would fail to write through a dangling symlink
authorJim Meyering <jim@meyering.net>
Sun, 10 Jun 2007 12:56:39 +0000 (14:56 +0200)
committerJim Meyering <jim@meyering.net>
Sun, 10 Jun 2007 13:01:18 +0000 (15:01 +0200)
commitb1b0f5c556f5b4080bf16525c309264de73084b7
treede1c561b0b228d0495a310358844ae6b87133599
parent6c95b3f2bf3edfa913a76f83da0c329f1bf0e1ea
bug-fix: cp would fail to write through a dangling symlink
* NEWS: Mention the bug fix.
* src/copy.c (copy_reg): When open fails with EEXIST, the destination
is lstat'able, and a symlink, call open again, but now without O_EXCL.
* tests/cp/thru-dangling: New file, to test for the above fix.
* tests/cp/Makefile.am (TESTS): Add thru-dangling.
* THANKS: Add Michael McLagan.
Bug report from Michael McLagan in <http://bugzilla.redhat.com/243588>.
ChangeLog
NEWS
THANKS
src/copy.c
tests/cp/Makefile.am
tests/cp/thru-dangling [new file with mode: 0755]