Jeff Trawick <[EMAIL PROTECTED]> writes:

> The same testcase works on Linux.  The OS behavior which is different
> is that on Solaris (and AIX and maybe others) returns 0 for
> stat("prefix/mycgi/") whereas Linux (and FreeBSD and maybe others)
> returns -1/ENOTDIR for the same stat.
...
> An alternate patch would change APR so that it returned APR_ENOTDIR if
> a stat on a file name ending with '/' succeeds but the OS tells us it
> is not actually a directory.

FYI...  After mulling it over a while and changing my mind a couple of
times, I think I prefer the patch below to a patch in APR.  APR has a
bigger problem to solve in general (not just stat()/lstat() differ in
their semantics but also open()).  That problem can't be solved
without extra syscalls.  Also, most applications don't even care.

Any comments before I commit?

-- 
Jeff Trawick | [EMAIL PROTECTED]
Born in Roswell... married an alien...

Reply via email to