[Bug libfortran/59108] ACTION='READ' is using O_CREAT
jb at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 15 22:00:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59108
--- Comment #2 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Fri Nov 15 22:00:36 2013
New Revision: 204864
URL: http://gcc.gnu.org/viewcvs?rev=204864&root=gcc&view=rev
Log:
When file status is unknown, don't set O_CREAT when opening read-only.
2013-11-15 Janne Blomqvist <jb@gcc.gnu.org>
Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/59108
* io/unix.c (regular_file): Don't set O_CREAT when opening a file
read-only with unknown status. Mask out O_CREAT when falling back
to opening read-only if ACTION= is not set and read-write fails.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/unix.c
More information about the Gcc-bugs
mailing list