aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 579258f5236..efe7f432e2a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4412,7 +4412,7 @@ This does code conversion according to the value of\n\
4412 4412
4413 filename = Fexpand_file_name (filename, Qnil); 4413 filename = Fexpand_file_name (filename, Qnil);
4414 4414
4415 if (! NILP (confirm) && confirm != Qexcl) 4415 if (! NILP (mustbenew) && mustbenew != Qexcl)
4416 barf_or_query_if_file_exists (filename, "overwrite", 1, 0, 1); 4416 barf_or_query_if_file_exists (filename, "overwrite", 1, 0, 1);
4417 4417
4418 if (STRINGP (visit)) 4418 if (STRINGP (visit))
@@ -4546,11 +4546,12 @@ This does code conversion according to the value of\n\
4546#else /* not VMS */ 4546#else /* not VMS */
4547#ifdef DOS_NT 4547#ifdef DOS_NT
4548 desc = open (fn, 4548 desc = open (fn,
4549 O_WRONLY | O_TRUNC | O_CREAT | buffer_file_type, 4549 O_WRONLY | O_TRUNC | O_CREAT | buffer_file_type
4550 | (mustbenew == Qexcl ? O_EXCL : 0),
4550 S_IREAD | S_IWRITE); 4551 S_IREAD | S_IWRITE);
4551#else /* not DOS_NT */ 4552#else /* not DOS_NT */
4552 desc = open (fn, O_WRONLY | O_TRUNC | O_CREAT 4553 desc = open (fn, O_WRONLY | O_TRUNC | O_CREAT
4553 | (confirm == Qexcl ? O_EXCL : 0), 4554 | (mustbenew == Qexcl ? O_EXCL : 0),
4554 auto_saving ? auto_save_mode_bits : 0666); 4555 auto_saving ? auto_save_mode_bits : 0666);
4555#endif /* not DOS_NT */ 4556#endif /* not DOS_NT */
4556#endif /* not VMS */ 4557#endif /* not VMS */