]> granicus.if.org Git - apache/commitdiff
This otherwise ineffectual patch allows modules to perform internal
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Dec 2001 17:07:33 +0000 (17:07 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Dec 2001 17:07:33 +0000 (17:07 +0000)
  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

index be0b0a044d55b445af555c05317cd922f3a5d55f..99e65fabc5192ca5a47e4179a1d81b2e2454d71f 100644 (file)
@@ -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;
             }