* io/unix.c: Add O_RDWR to open() call.

From-SVN: r102811
This commit is contained in:
Francois-Xavier Coudert 2005-08-06 17:38:49 +02:00 committed by François-Xavier Coudert
parent 2f806f3b9b
commit 2c4a108eec
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-08-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* io/unix.c: Add O_RDWR to open() call.
2005-08-04 Paul Thomas <pault@gcc.gnu.org>
* transfer.c (data_transfer_init): Truncate file in

View File

@ -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;