aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2015-08-09 16:43:42 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2015-08-09 16:43:42 +0000
commit18a2180daa88bc69ff62d1de6aaeaf2705a4fbe5 (patch)
treeb9e955edfc7a9eb69e70c275cb585c4a1e908a0f /libgfortran
parentdc04bc843188dff973f0a9a758d25217fad66444 (diff)
downloadgcc-18a2180daa88bc69ff62d1de6aaeaf2705a4fbe5.zip
gcc-18a2180daa88bc69ff62d1de6aaeaf2705a4fbe5.tar.gz
gcc-18a2180daa88bc69ff62d1de6aaeaf2705a4fbe5.tar.bz2
re PR libfortran/66936 (io/unix.c gratuitously uses S_IRWXG and S_IRWXO on the basis that umask() is available)
PR libfortran/66936 * io/unix.c (__MINGW32__): Undefine HAVE_UMASK. From-SVN: r226750
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/unix.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index ffd6cfd..0cfc80d 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR libfortran/66936
+ * io/unix.c (__MINGW32__): Undefine HAVE_UMASK.
+
2015-08-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR libfortran/66458
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c
index a1ce9a3..4d8726c 100644
--- a/libgfortran/io/unix.c
+++ b/libgfortran/io/unix.c
@@ -101,6 +101,12 @@ id_from_fd (const int fd)
}
#endif /* HAVE_WORKING_STAT */
+
+
+/* On mingw, we don't use umask in tempfile_open(), because it
+ doesn't support the user/group/other-based permissions. */
+#undef HAVE_UMASK
+
#endif /* __MINGW32__ */