www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Plechsmid <plech...@karlin.mff.cuni.cz>
Subject mod_autoindex/3130: Directories have size shown as "0k" instead of "-" in Fancy Indexing
Date Sat, 03 Oct 1998 18:51:57 GMT

>Number:         3130
>Category:       mod_autoindex
>Synopsis:       Directories have size shown as "0k" instead of "-" in Fancy Indexing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          mistaken
>Submitter-Id:   apache
>Arrival-Date:   Sat Oct  3 12:00:00 PDT 1998
>Last-Modified:
>Originator:     plechsmi@karlin.mff.cuni.cz
>Organization:
apache
>Release:        1.3.2
>Environment:
-
>Description:
Fancy Indexing shows size of directories as "0k" instead of "-".
In Apache 1.2.6 it was OK.
Probably only a mistake (if not intended) in Apache 1.3.x (even 1.3.3-dev).
>How-To-Repeat:
See e.g.
	http://www.apache.org/dist/
>Fix:
The following patch for Apache 1.3.1 should solve it:

@@ -762,7 +762,7 @@
                if (!(p->alt = find_alt(d, rr, 1))) {
                    p->alt = "DIR";
                }
-               p->size = 0;
+               p->size = -1;
                p->name = ap_pstrcat(r->pool, name, "/", NULL);
            }
            else {
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]




Mime
View raw message