Re: [PATCH, libgfortran] PR 65200 Handle EPERM as EACCES

2015-03-07 Thread Jerry DeLisle
On 03/06/2015 04:23 PM, Janne Blomqvist wrote: The patch as is causes gfortran.dg/open_errors.f90 to fail, due to changed error messages. I'm a bit unsure of to fix this, as now strerror* is used to generate part of the message, and thus the message can be different on different targets, and eve

Re: [PATCH, libgfortran] PR 65200 Handle EPERM as EACCES

2015-03-07 Thread FX
Hi Janne, > the attached patch makes GFortran handle errno=EPERM in the same way > as EACCES (this affects only when no ACTION= specifier is used in the > OPEN statement and opening the file in read-write mode fails). Makes sense. > The patch also contains a doc snippet to explain how GFortran b

[PATCH, libgfortran] PR 65200 Handle EPERM as EACCES

2015-03-06 Thread Janne Blomqvist
Hi, the attached patch makes GFortran handle errno=EPERM in the same way as EACCES (this affects only when no ACTION= specifier is used in the OPEN statement and opening the file in read-write mode fails). Ostensibly the distinction is roughly - EACCES: Insufficient privilege. E.g. do the same as