From f2ec300d5232f9a04f2006e2602e858e5d4e399c Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 28 Dec 2001 17:07:33 +0000 Subject: [PATCH] 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 --- modules/generators/mod_autoindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.50.1