Commit 2c4a108e by Francois-Xavier Coudert Committed by François-Xavier Coudert

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

From-SVN: r102811
parent 2f806f3b
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> 2005-08-04 Paul Thomas <pault@gcc.gnu.org>
* transfer.c (data_transfer_init): Truncate file in * transfer.c (data_transfer_init): Truncate file in
......
...@@ -998,7 +998,7 @@ tempfile (void) ...@@ -998,7 +998,7 @@ tempfile (void)
if (mktemp (template)) if (mktemp (template))
do 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)); while (!(fd == -1 && errno == EEXIST) && mktemp (template));
else else
fd = -1; fd = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment