diff options
author | Greg Ames <gregames@apache.org> | 2002-02-04 22:19:08 +0100 |
---|---|---|
committer | Greg Ames <gregames@apache.org> | 2002-02-04 22:19:08 +0100 |
commit | 6cbb3ef98ea7ccb6651e58ea9a7f9d4d8c4e42b7 (patch) | |
tree | 36682699e58bc5957242cca0f73d73d385acfc08 /modules/generators/mod_autoindex.c | |
parent | oops (diff) | |
download | apache2-6cbb3ef98ea7ccb6651e58ea9a7f9d4d8c4e42b7.tar.xz apache2-6cbb3ef98ea7ccb6651e58ea9a7f9d4d8c4e42b7.zip |
vetoing and backing out OtherBill's patch rev 1.91. This breaks
mod_autoindex on systems such as Unix where apr_dir_read doesn't automatically
return the filetype. You see a '?' icon rather than a folder icon
for directories on 2.0.31 because mod_autoindex doesn't realize that the thing
is a directory.
No, we don't want more stat()s either.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93232 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators/mod_autoindex.c')
-rw-r--r-- | modules/generators/mod_autoindex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index bef602ae24..aad5199b2b 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 (dirent->filetype == APR_DIR) { + if (rr->finfo.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 (dirent->filetype == APR_DIR) { + if (rr->finfo.filetype == APR_DIR) { if (autoindex_opts & FOLDERS_FIRST) { p->isdir = 1; } |