]> git.ipfire.org Git - thirdparty/coreutils.git/commit
In move mode, always first try to rename. Before, upon failure to
authorJim Meyering <jim@meyering.net>
Sun, 29 Sep 2002 08:43:19 +0000 (08:43 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 29 Sep 2002 08:43:19 +0000 (08:43 +0000)
commit6daabb757807b8730502043e4dabeb191bc2bad6
tree6477703e72ceee2e6b37a7f76b9fa77834a91f3b
parentd7e2b7fa84b0c6d7ca201666ea2285d8db556b4d
In move mode, always first try to rename.  Before, upon failure to
rename a directory, this code would never attempt to rename any
other file in that directory, but would thenceforth always copy.
On some systems (NetApp version ??), renaming a directory may fail
with EXDEV, yet renaming files within that directory to a newly-
created destination directory succeeds.

(copy_internal): Remove local, move_mode;
use x->move_mode instead.  Based on a patch from Tom Haynes.
src/copy.c