]> 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)
commitca305e28a2b430d2b0b888b503329298b44222c1
treec9e4118e8dde2f3317d0bf20ae67af34d66e63f8
parentf1461c4a1c807cba80453844eecbc64beb73412a
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