]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Because of inappropriate (but POSIX-mandated) behavior of rename,
authorJim Meyering <jim@meyering.net>
Fri, 4 Apr 2003 21:53:27 +0000 (21:53 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 4 Apr 2003 21:53:27 +0000 (21:53 +0000)
commitfc6073d6338693d2d5f6aec51c67c8bb0282832c
treec02bf9a8a60018593ab679a1ca38da83a88feb34
parente46be69e868f5bb6382289e802b749cd9804c6db
Because of inappropriate (but POSIX-mandated) behavior of rename,
`mv a b' would not remove `a' in some unusual cases.  Work around
this by unlinking `a' when necessary.

(same_file_ok): Add an output parameter.
Set it in the offending case.
(copy_internal): When necessary, unlink SRC_PATH and inform caller.
src/copy.c