OSDN Git Service

* io/unix.c: Add O_RDWR to open() call.
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Aug 2005 15:38:49 +0000 (15:38 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Aug 2005 15:38:49 +0000 (15:38 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102811 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/io/unix.c

index 35f21d9..79e8f9b 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * io/unix.c: Add O_RDWR to open() call.
+
 2005-08-04 Paul Thomas  <pault@gcc.gnu.org>
 
        * transfer.c (data_transfer_init): Truncate file in
index b35182d..56df254 100644 (file)
@@ -998,7 +998,7 @@ tempfile (void)
 
   if (mktemp (template))
     do
-      fd = open (template, O_CREAT | O_EXCL, S_IREAD | S_IWRITE);
+      fd = open (template, O_RDWR |O_CREAT | O_EXCL, S_IREAD | S_IWRITE);
     while (!(fd == -1 && errno == EEXIST) && mktemp (template));
   else
     fd = -1;