On Thu, Aug 11, 2005 at 09:25:19PM -0600, Eric Blake wrote:

> It turns out that a patch to cygwin to make open(".", O_RDONLY) always
> work if the directory is readable fixed find; so that find does the right
> thing out-of-the-box (with or without fts) in the upcoming cygwin-1.5.19.
>  Unless some other system is found where open(".") violates POSIX
> requirements for readable directories, I don't think we need to go to any
> great effort in gnulib fts() or in find to work around this cygwin virtual
> directory bug.

My reading of the POSIX standard (IEEE Std 1003.1, 2004 Edition) is
that it requires open(".", O_RDONLY) to work on directories.  I
believe that the only case where open(2) is permitted to fail with
EISDIR is:-

[EISDIR]
    The named file is a directory and oflag includes O_WRONLY or O_RDWR.

Regards,
James.



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to