httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: [PATCH] PR 10138 /mycgi vs. /mycgi/ with FollowSymLinks
Date Thu, 14 Mar 2002 17:45:13 GMT
Jeff Trawick <> 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 |
Born in Roswell... married an alien...

View raw message