2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
* io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
From-SVN: r206064
+2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
+
+ * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC.
+
2013-12-16 Jerry DeLisle <jvdelisle@gcc.gnu>
PR libfortran/59419
#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);