diff options
author | Jim Meyering <meyering@redhat.com> | 2007-11-15 13:04:13 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-15 13:04:13 +0100 |
commit | 2ed532618f1df9efa39b94bb2507319f48b650cf (patch) | |
tree | 32eac46bd8e82cb3f91ced3cf3a157e78cd175a0 /tests/misc | |
parent | 47a46c844c712f24c5f226743227ae85760f9def (diff) | |
download | coreutils-2ed532618f1df9efa39b94bb2507319f48b650cf.tar.xz |
Avoid misbehavior of a cross-device "mv" or "install".
Those programs must not dereference a destination symlink.
* src/copy.c (copy_reg): Don't treat a dangling destination symlink
differently in move mode. In move mode, the only way the added
O_EXCL can cause failure is when some other process has recreated
the file this code unlinked a few instructions before.
Diffstat (limited to 'tests/misc')
0 files changed, 0 insertions, 0 deletions