in file_io/unix/filestat.c there this code block:

        /* WARNING: All errors but not found will be handled as not directory
         */
        if (errno != ENOENT)
            return APR_ENOENT;
        else
            return errno;

http://svn.apache.org/viewvc/apr/apr/trunk/file_io/unix/filestat.c?view=markup


Either the code is wrong or the comment (or, of course, my interpretation).

Should it be (and respect the comment):

        /* WARNING: All errors but not found will be handled as not directory
         */
        if (errno != ENOENT)
            return APR_ENODIR;
        else
            return errno;

or just this (it has the same functionality):

        return errno;
--
Lucian

Reply via email to