From d093c3ac08ef48f862971dd9b1f35f72c6228976 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 3 Jul 1993 06:58:05 +0000 Subject: [PATCH] (Frename_file): After prompting for ok-if-already-exists, pass only nil or t to copy-file, never an integer. --- src/fileio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 41838f0937e..fe4deb1fd32 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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 -- 2.39.5