Skip to content
Snippets Groups Projects
Commit 35f48a90 authored by Janne Blomqvist's avatar Janne Blomqvist
Browse files

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.

Co-Authored-By: default avatarJerry DeLisle <jvdelisle@gcc.gnu.org>

From-SVN: r204864
parent c02065fc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment