From: Andreas Tobler Date: Tue, 17 Dec 2013 18:12:39 +0000 (+0100) Subject: unix.c (tempfile_open): Only use the needed flag O_CLOEXEC. X-Git-Tag: releases/gcc-4.9.0~2022 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95796c1fa5cabd90536333d87f00b4d4e3c5ab5a;p=thirdparty%2Fgcc.git 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 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 1c6c4da40fdc..309712c012bc 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 c2bc28aed157..86f7fd6d732e 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);