]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
revert: unix.c (tempfile_open): Pass mode to "open" for O_CREAT.
authorTobias Burnus <burnus@net-b.de>
Thu, 31 May 2012 06:10:18 +0000 (08:10 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 31 May 2012 06:10:18 +0000 (08:10 +0200)
2012-05-31  Tobias Burnus  <burnus@net-b.de>

        Revert:
        2012-05-16  Tobias Burnus  <burnus@net-b.de>

        * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT.

From-SVN: r188048

libgfortran/ChangeLog
libgfortran/io/unix.c

index 547ed714f8112c5e7dfd4aad9aacb0bca69e67f0..4ec92adc539c3d77a50a6e9fd6d110c76d810cf4 100644 (file)
@@ -1,3 +1,10 @@
+2012-05-31  Tobias Burnus  <burnus@net-b.de>
+
+       Revert:
+       2012-05-16  Tobias Burnus  <burnus@net-b.de>
+
+       * io/unix.c (tempfile_open): Pass mode to "open" for O_CREAT.
+
 2012-05-30  Tobias Burnus  <burnus@net-b.de>
 
        * io/io.h: Fix comment typos.
index 2e59efdba7382a40bb1b3d32aeb0c446b5f09a7f..c81163f25635145f3df3d3661fb716ecd94eb149 100644 (file)
@@ -1099,9 +1099,9 @@ tempfile_open (const char *tempdir, char **fname)
 
 #if defined(HAVE_CRLF) && defined(O_BINARY)
       fd = open (template, O_RDWR | O_CREAT | O_EXCL | O_BINARY,
-                S_IRUSR | S_IWUSR, 0600);
+                S_IRUSR | S_IWUSR);
 #else
-      fd = open (template, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR, 0600);
+      fd = open (template, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
 #endif
     }
   while (fd == -1 && errno == EEXIST);