Commit d093c3ac authored by Roland McGrath's avatar Roland McGrath
Browse files

(Frename_file): After prompting for ok-if-already-exists, pass only nil or

t to copy-file, never an integer.
parent f66ef185
......@@ -1767,7 +1767,10 @@ This is what happens in interactive use with M-x.")
{
if (errno == EXDEV)
{
Fcopy_file (filename, newname, ok_if_already_exists, Qt);
Fcopy_file (filename, newname,
/* We have already prompted if it was an integer,
so don't have copy-file prompt again. */
NILP (ok_if_already_exists) ? Qnil : Qt, Qt);
Fdelete_file (filename);
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment