flags argument to emacs_open; it seems to conflict with O_EXCL.
+2001-03-09 Gerd Moellmann <gerd@gnu.org>
+
+ * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
+ flags argument to emacs_open; it seems to conflict with O_EXCL.
+
2001-03-09 Kenichi Handa <handa@etl.go.jp>
* composite.h (struct composition): Change types of members;
#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