Mercurial > emacs
diff src/fileio.c @ 36693:ca1461008b2c
(Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
flags argument to emacs_open; it seems to conflict with O_EXCL.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Fri, 09 Mar 2001 12:38:54 +0000 |
| parents | 5dad3c516338 |
| children | 98458fd6ac46 |
line wrap: on
line diff
--- a/src/fileio.c Fri Mar 09 12:08:49 2001 +0000 +++ b/src/fileio.c Fri Mar 09 12:38:54 2001 +0000 @@ -4684,8 +4684,8 @@ #else /* not VMS */ #ifdef DOS_NT desc = emacs_open (fn, - O_WRONLY | O_TRUNC | O_CREAT | buffer_file_type - | (mustbenew == Qexcl ? O_EXCL : 0), + O_WRONLY | O_CREAT | buffer_file_type + | (EQ (mustbenew, Qexcl) ? O_EXCL : O_TRUNC), S_IREAD | S_IWRITE); #else /* not DOS_NT */ desc = emacs_open (fn, O_WRONLY | O_TRUNC | O_CREAT
