Re: [patch, libgfortran] Fix PR59108 ACTION='READ' is using O_CREAT

2013-11-15 Thread Tobias Burnus
Jerry DeLisle wrote: The attached patch sets the create flag for the case where action is specified as read only. Regression tested on x86-64 Linux. OK for trunk? OK. Thanks for the patch! Tobias 2013-11-15 Jerry DeLisle PR fortran/59108 * io/unix.c (regular_file): If

Re: [patch, libgfortran] Fix PR59108 ACTION='READ' is using O_CREAT

2013-11-15 Thread Jerry DeLisle
On 11/15/2013 01:05 PM, Janne Blomqvist wrote: > On Fri, Nov 15, 2013 at 9:11 PM, Jerry DeLisle wrote: >> The attached patch sets the create flag for the case where action is >> specified >> as read only. > > I was looking at this yesterday, but didn't have time to finish > everything then. So I

Re: [patch, libgfortran] Fix PR59108 ACTION='READ' is using O_CREAT

2013-11-15 Thread Janne Blomqvist
On Fri, Nov 15, 2013 at 9:11 PM, Jerry DeLisle wrote: > The attached patch sets the create flag for the case where action is specified > as read only. I was looking at this yesterday, but didn't have time to finish everything then. So I made a similar patch, which also takes into account the case

[patch, libgfortran] Fix PR59108 ACTION='READ' is using O_CREAT

2013-11-15 Thread Jerry DeLisle
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 wit