diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 1c6c4da40fd..309712c012b 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2013-12-17 Andreas Tobler + + * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC. + 2013-12-16 Jerry DeLisle PR libfortran/59419 diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index c2bc28aed15..86f7fd6d732 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);