[patch, libgfortran] PR67367 Program crashes on READ
Jerry DeLisle
jvdelisle@charter.net
Sat Aug 29 15:45:00 GMT 2015
On 08/28/2015 11:59 PM, FX wrote:
> Hi Jerry,
>
> The patch is OK, but Iâm a bit puzzled about what the testcase does.
>
> It tests that we can OPEN a directory, but not READ from it? I didnât know that was expected (to be able to OPEN a directory), and I find it somewhat puzzling. Can you shed light on that?
>
> Thanks,
> FX
>
According to my man pages, open is used to open a directory as read only and
readdir must be used to actually read it. It is not allowed to open a directory
with write access. The test case is checking that the open works as expected
and the attempt to read using 'read' results in the error (no segfault)
Jerry
PS thanks for the review.
More information about the Fortran
mailing list