From 2c4a108eec40a96ac7c5fcb8811678c11c71c529 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Sat, 6 Aug 2005 17:38:49 +0200 Subject: * io/unix.c: Add O_RDWR to open() call. From-SVN: r102811 --- libgfortran/io/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgfortran/io') diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index b35182d..56df254 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -998,7 +998,7 @@ tempfile (void) if (mktemp (template)) do - fd = open (template, O_CREAT | O_EXCL, S_IREAD | S_IWRITE); + fd = open (template, O_RDWR |O_CREAT | O_EXCL, S_IREAD | S_IWRITE); while (!(fd == -1 && errno == EEXIST) && mktemp (template)); else fd = -1; -- cgit v1.1