From: William A. Rowe Jr Date: Fri, 28 Dec 2001 17:07:33 +0000 (+0000) Subject: This otherwise ineffectual patch allows modules to perform internal X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef349afe86ebfe2431fd537f754a496c486c2932;p=apache This otherwise ineffectual patch allows modules to perform internal redirects of dirs into other resources, while still treating such a resource as a dir, based on the original apr_dir_read results. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92638 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index be0b0a044d..99e65fabc5 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1298,7 +1298,7 @@ static struct ent *make_autoindex_entry(const apr_finfo_t *dirent, } p = (struct ent *) apr_pcalloc(r->pool, sizeof(struct ent)); - if (rr->finfo.filetype == APR_DIR) { + if (dirent->filetype == APR_DIR) { p->name = apr_pstrcat(r->pool, dirent->name, "/", NULL); } else { @@ -1316,7 +1316,7 @@ static struct ent *make_autoindex_entry(const apr_finfo_t *dirent, if (autoindex_opts & (FANCY_INDEXING | TABLE_INDEXING)) { p->lm = rr->finfo.mtime; - if (rr->finfo.filetype == APR_DIR) { + if (dirent->filetype == APR_DIR) { if (autoindex_opts & FOLDERS_FIRST) { p->isdir = 1; }