From: Francois-Xavier Coudert Date: Sat, 6 Aug 2005 15:38:49 +0000 (+0200) Subject: * io/unix.c: Add O_RDWR to open() call. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c4a108eec40a96ac7c5fcb8811678c11c71c529;p=gcc.git * io/unix.c: Add O_RDWR to open() call. From-SVN: r102811 --- diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 35f21d90eb7..79e8f9bfe58 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2005-08-04 Francois-Xavier Coudert + + * io/unix.c: Add O_RDWR to open() call. + 2005-08-04 Paul Thomas * transfer.c (data_transfer_init): Truncate file in diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index b35182d6169..56df254d380 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;