diff options
author | Tobias Burnus <burnus@net-b.de> | 2012-05-31 08:10:18 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2012-05-31 08:10:18 +0200 |
commit | 9daf64e704f70cbd6ec1b9684a3a3e546830d6a2 (patch) | |
tree | f87dda87e29a6587674d7bec8339c56aa79b3ebe /libgfortran/io/unix.c | |
parent | 7cc61ee413c4f77b89abf53bb524802fd1397e69 (diff) | |
download | gcc-9daf64e704f70cbd6ec1b9684a3a3e546830d6a2.zip gcc-9daf64e704f70cbd6ec1b9684a3a3e546830d6a2.tar.gz gcc-9daf64e704f70cbd6ec1b9684a3a3e546830d6a2.tar.bz2 |
revert: unix.c (tempfile_open): Pass mode to "open" for O_CREAT.
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
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index 2e59efd..c81163f 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -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); |