Prompt once again for `mv -i A B' when A and B are hard links
authorJim Meyering <jim@meyering.net>
Fri, 11 Mar 2005 09:36:52 +0000 (09:36 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 11 Mar 2005 09:36:52 +0000 (09:36 +0000)
commitd0f21b4a5583235001aaac254efc0802de414eec
tree706ad85397b060e1294b8c82d7b3e165897ef924
parentd1d993432f0a4460e426b32e6442e0bded14ece0
Prompt once again for `mv -i A B' when A and B are hard links
to the same file.  This fixes a bug introduced by my 2003-04-04
(coreutils-5.0.1) change.

(abandon_move): New function, factored out of
copy_internal, now that this code is being used from two places.
(copy_internal): Perform the same interactive-related test for
whether it's alright to proceed and (usually) overwrite the
destination file.
src/copy.c