]> granicus.if.org Git - apache/commit
Allow mod_autoindex to serve symlinks if permitted and optimize our stats
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 7 Feb 2002 06:37:09 +0000 (06:37 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 7 Feb 2002 06:37:09 +0000 (06:37 +0000)
commit795f15723d05c36afe2ece9a641032e29626e03f
treec9e4118e8dde2f3317d0bf20ae67af34d66e63f8
parent38969cf175aabd3b0b510a96c3722035b60f2e35
Allow mod_autoindex to serve symlinks if permitted and optimize our stats
so that only one stat() is needed.

If we get APR_FINFO_MIN bits, lookup_dirent won't do a repeated stat()
call.  So, let's do it here.  Also, if we see a symlink, expand it.
(Technically, we don't *have* to expand the symlinks - the resolve_symlink
fix handles that, but we can't really assume that.)  Since we know that
dirent will be rr->finfo anyway, go back to relying on dirent only for
APR_DIR checks.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93329 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/generators/mod_autoindex.c