You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Martin Plechsmid <pl...@karlin.mff.cuni.cz> on 1998/10/03 20:51:57 UTC

mod_autoindex/3130: Directories have size shown as "0k" instead of "-" in Fancy Indexing

>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 <ap...@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!         ]