OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* io/unix.c: Add O_RDWR to open() call.
[pf3gnuchains/gcc-fork.git]
/
libgfortran
/
io
/
unix.c
diff --git
a/libgfortran/io/unix.c
b/libgfortran/io/unix.c
index
b35182d
..
56df254
100644
(file)
--- 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;