aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-03-09 12:40:47 +0000
committerGerd Moellmann2001-03-09 12:40:47 +0000
commit95522746457a6410f8efc42f7473623f7395d1d3 (patch)
tree6911ab8c94b246b57602c67ccdef3af13bd59d51 /src
parent28cd4910e87726f19c87b3f35f62742b60aff019 (diff)
downloademacs-95522746457a6410f8efc42f7473623f7395d1d3.tar.gz
emacs-95522746457a6410f8efc42f7473623f7395d1d3.zip
(Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
flags argument to emacs_open; it seems to conflict with O_EXCL.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 14e557e3827..68964536ae7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-03-09 Gerd Moellmann <gerd@gnu.org>
2
3 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4 flags argument to emacs_open; it seems to conflict with O_EXCL.
5
12001-03-09 Kenichi Handa <handa@etl.go.jp> 62001-03-09 Kenichi Handa <handa@etl.go.jp>
2 7
3 * composite.h (struct composition): Change types of members; 8 * composite.h (struct composition): Change types of members;
diff --git a/src/fileio.c b/src/fileio.c
index dc087873988..fb40e549710 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4684,8 +4684,8 @@ This does code conversion according to the value of\n\
4684#else /* not VMS */ 4684#else /* not VMS */
4685#ifdef DOS_NT 4685#ifdef DOS_NT
4686 desc = emacs_open (fn, 4686 desc = emacs_open (fn,
4687 O_WRONLY | O_TRUNC | O_CREAT | buffer_file_type 4687 O_WRONLY | O_CREAT | buffer_file_type
4688 | (mustbenew == Qexcl ? O_EXCL : 0), 4688 | (EQ (mustbenew, Qexcl) ? O_EXCL : O_TRUNC),
4689 S_IREAD | S_IWRITE); 4689 S_IREAD | S_IWRITE);
4690#else /* not DOS_NT */ 4690#else /* not DOS_NT */
4691 desc = emacs_open (fn, O_WRONLY | O_TRUNC | O_CREAT 4691 desc = emacs_open (fn, O_WRONLY | O_TRUNC | O_CREAT