From 95796c1fa5cabd90536333d87f00b4d4e3c5ab5a Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Tue, 17 Dec 2013 19:12:39 +0100 Subject: unix.c (tempfile_open): Only use the needed flag O_CLOEXEC. 2013-12-17 Andreas Tobler * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC. From-SVN: r206064 --- libgfortran/ChangeLog | 4 ++++ libgfortran/io/unix.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'libgfortran') diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 1c6c4da..309712c 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 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); -- cgit v1.1