]> gcc.gnu.org Git - gcc.git/commitdiff
* io/unix.c: Add O_RDWR to open() call.
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Sat, 6 Aug 2005 15:38:49 +0000 (17:38 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 6 Aug 2005 15:38:49 +0000 (15:38 +0000)
From-SVN: r102811

libgfortran/ChangeLog
libgfortran/io/unix.c

index 35f21d90eb7f4a2fb9de1683830d75cf07b63dcd..79e8f9bfe58993bc527d2c6b8bc45311470dd1b1 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 b35182d61696d89c9fde77a466762e9d9f4669a9..56df254d380b7441d249e63e6dfed3ab976c5c09 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;
This page took 0.059583 seconds and 5 git commands to generate.