[patch, libgfortran] Fix PR59108 ACTION='READ' is using O_CREAT
Jerry DeLisle
jvdelisle@charter.net
Fri Nov 15 19:11:00 GMT 2013
The attached patch sets the create flag for the case where action is specified
as read only.
I have confirmed that the PR test case now only produces:
open("wombat", O_RDONLY) = 3
open("numbat", O_RDONLY) = 4
open("dingbat", O_RDONLY) = 5
+++ exited with 0 +++
I can not think of a test case for this.
Regression tested on x86-64 Linux.
OK for trunk?
Regards,
Jerry
2013-11-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/59108
* io/unix.c (regular_file): If the ACTION is read only set
create flag to zero.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr59108.diff
Type: text/x-patch
Size: 415 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20131115/464654b4/attachment.bin>
More information about the Fortran
mailing list