[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conversion of GNU find to use gnulib's fts interface
From: |
James Youngman |
Subject: |
Re: Conversion of GNU find to use gnulib's fts interface |
Date: |
Fri, 12 Aug 2005 07:01:41 +0100 |
User-agent: |
Mutt/1.5.9i |
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.