diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-31 06:10:18 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-31 06:10:18 +0000 |
commit | e7628b142272e19ba1d4518e3d568f8cd9e7df47 (patch) | |
tree | f87dda87e29a6587674d7bec8339c56aa79b3ebe /libgfortran | |
parent | 80ebb64ae60c3221b8726883dbf612e3d755bf50 (diff) | |
download | gcc-e7628b142272e19ba1d4518e3d568f8cd9e7df47.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188048 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 7 | ||||
-rw-r--r-- | libgfortran/io/unix.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 547ed714f81..4ec92adc539 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -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. diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index 2e59efdba73..c81163f2563 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); |