diff options
author | Jim Meyering <jim@meyering.net> | 1999-12-05 15:13:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-12-05 15:13:21 +0000 |
commit | f880990daf70fa2427c5aeece3443c40e1375cbb (patch) | |
tree | 54c73d3ea451838a34ec22a761f1a11348795cc3 /src/csplit.c | |
parent | 7306126ef0380b9ce1754121241b59632ab2c70b (diff) | |
download | coreutils-f880990daf70fa2427c5aeece3443c40e1375cbb.tar.xz |
Revert the previous change.
(copy_internal): In move mode, if the rename attempt
fails, then unlink any existing destination file. This makes a
cross-device `mv' more consistent with the intra-device behavior.
This change is required by POSIX to make a cross-device move act with
semantics similar to those of the rename syscall. For example now
`mv' can move a file onto a symlink to itself when that symlink
is on a separate partition. With fileutils-4.0j, it would fail with
a diagnostic saying they were the same file.
Reported by Bruno Haible.
Diffstat (limited to 'src/csplit.c')
0 files changed, 0 insertions, 0 deletions