Janne Blomqvist 35f48a901d 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: Jerry DeLisle <jvdelisle@gcc.gnu.org>

From-SVN: r204864
2013-11-16 00:00:36 +02:00
..
2013-01-14 18:20:58 +00:00
2013-01-14 18:20:58 +00:00
2013-01-14 18:20:58 +00:00
2013-01-14 18:20:58 +00:00
2013-05-04 17:23:11 -04:00
2013-07-21 19:57:23 +02:00
2013-01-14 18:20:58 +00:00
2013-03-19 13:13:32 +02:00