Paul Bone
2016-08-31 03:52:53 UTC
I noticed recently that, at least on my Linux system, opening with fopen() a
directory will succeed. Errors will be returned when you attempt to read
from the returned file object.
Should the library code check that it has not just opened a directory within
the open code? Rather than waiting for the caller to attempt to read from
the file?
Thanks.
directory will succeed. Errors will be returned when you attempt to read
from the returned file object.
Should the library code check that it has not just opened a directory within
the open code? Rather than waiting for the caller to attempt to read from
the file?
Thanks.
--
Paul Bone
http://paul.bone.id.au
Paul Bone
http://paul.bone.id.au