changeset 3963:39caef7a70c2

(Frename_file): After prompting for ok-if-already-exists, pass only nil or t to copy-file, never an integer.
author Roland McGrath <roland@gnu.org>
date Sat, 03 Jul 1993 06:58:05 +0000
parents 38041a5069a8
children c4696ff3b067
files src/fileio.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sat Jul 03 03:58:10 1993 +0000
+++ b/src/fileio.c	Sat Jul 03 06:58:05 1993 +0000
@@ -1767,7 +1767,10 @@
     {
       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