diff options
author | Andreas Tobler <andreast@gcc.gnu.org> | 2013-12-17 19:12:39 +0100 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2013-12-17 19:12:39 +0100 |
commit | 95796c1fa5cabd90536333d87f00b4d4e3c5ab5a (patch) | |
tree | 472e560657415ee811d131c1c0fb26befd54488c /libgfortran/io/unix.c | |
parent | ae246f7f1d75e04185a7e566bf21cbf6149a3b29 (diff) | |
download | gcc-95796c1fa5cabd90536333d87f00b4d4e3c5ab5a.zip gcc-95796c1fa5cabd90536333d87f00b4d4e3c5ab5a.tar.gz gcc-95796c1fa5cabd90536333d87f00b4d4e3c5ab5a.tar.bz2 |
unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
* io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
From-SVN: r206064
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index c2bc28a..86f7fd6 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -1124,7 +1124,7 @@ tempfile_open (const char *tempdir, char **fname) #endif #if defined(HAVE_MKOSTEMP) && defined(O_CLOEXEC) - fd = mkostemp (template, O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC); + fd = mkostemp (template, O_CLOEXEC); #else fd = mkstemp (template); set_close_on_exec (fd); |