From: Sander Striker Date: Sat, 27 Sep 2003 18:34:56 +0000 (+0000) Subject: Backport from 2.1. X-Git-Tag: 2.0.48~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57a739df4414a7717f7f499cb7076da87c8bdb02;p=thirdparty%2Fapache%2Fhttpd.git Backport from 2.1. *) mod_autoindex: If a directory contains a file listed in the DirectoryIndex directive, the folder icon is no longer replaced by the icon of that file. PR 9587. [David Shane Holden ] Reviewed by: Andre Malo, Jeff Trawick, Sander Striker git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101330 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 1fe7900c6db..d8b7cca0720 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ Changes with Apache 2.0.48 + *) mod_autoindex: If a directory contains a file listed in the + DirectoryIndex directive, the folder icon is no longer replaced + by the icon of that file. PR 9587. + [David Shane Holden ] + *) Fixed mod_usertrack to not get false positive matches on the user-tracking cookie's name. PR 16661. [Manni Wood ] diff --git a/STATUS b/STATUS index 457311785f8..08ce875cb84 100644 --- a/STATUS +++ b/STATUS @@ -1,5 +1,5 @@ APACHE 2.0 STATUS: -*-text-*- -Last modified at [$Date: 2003/09/27 18:24:38 $] +Last modified at [$Date: 2003/09/27 18:34:56 $] Release: @@ -238,11 +238,6 @@ PATCHES TO PORT FROM 2.1 modules/ssl/ssl_engine_kernel.c: r1.196 +1: trawick, jorton, striker - * use the appropriate folder icon, even if there's a directoryindex - listed file in the particular folder. PR 9587 - modules/generators/mod_autoindex.c r1.120 - +1: nd, trawick, striker - * More ab fixes; r1.129 fixes what looks like a trivial error in the SSL support; r1.130 adds some state-handling fixes related to ab's breakage in 2.0.47 diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 8717f12554e..ab90d40327f 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1361,6 +1361,7 @@ static struct ent *make_autoindex_entry(const apr_finfo_t *dirent, if (autoindex_opts & FOLDERS_FIRST) { p->isdir = 1; } + rr->filename = ap_make_dirstr_parent (rr->pool, rr->filename); if (!(p->icon = find_icon(d, rr, 1))) { p->icon = find_default_icon(d, "^^DIRECTORY^^"); }