[RFA] Should openp open directories?

Eli Zaretskii eliz@is.elta.co.il
Fri Apr 19 02:54:00 GMT 2002


> Date: Fri, 19 Apr 2002 11:18:07 +0200
> From: Joel Brobecker <brobecker@ACT-Europe.FR>
> 
> It seems a sensible idea to return True when stat fails, except when the
> file does not exist.

This is okay with me (non-existing files will fail the open call
anyhow).

> > Also, did you try your patch when there's a directory by that name, but 
> > no executable program?  If so, what does the patched GDB say and/or do?
> 
> Yes. I tried "./gdb/gdb bfd" at the root of the gdb source directory and
> got the following error message:
> 
>           bfd: No such file or directory.

That's good.  Thanks for testing.

> The "or directory" part may be confusing...

Yes, but it's a standard string associated with ENOENT, so I guess
users of GDB should be acquainted with it.



More information about the Gdb-patches mailing list