httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <rede...@raleigh.ibm.com>
Subject [Patch]: Fix mod_autoindex to generate indexes again.
Date Mon, 08 Nov 1999 19:35:17 GMT
mod_autoindex has a small bug when calling ap_readdir. This was
causing empty indexes to be created. The following patch fixes
this problem.


-- 
Paul J. Reder
------------------------------------------------------------
"Remember, Information is not knowledge; Knowledge is not Wisdom;
Wisdom is not truth; Truth is not beauty; Beauty is not love;
Love is not music; Music is the best." -- Frank Zappa






--- mod_autoindexold.c  Mon Nov  8 14:26:13 1999
+++ mod_autoindex.c     Mon Nov  8 14:23:40 1999
@@ -1579,7 +1579,7 @@
      * linked list and then arrayificate them so qsort can use them. 
      */
     head = NULL;
-    while (ap_readdir(d)) {
+    while (ap_readdir(d) == APR_SUCCESS) {
         char *d_name;
         ap_get_dir_filename(&d_name, d);
        p = make_autoindex_entry(d_name, autoindex_opts,

Mime
View raw message