stoddard 99/11/08 19:41:15
Modified: src/modules/standard mod_autoindex.c Log: mod_autoindex has a small bug when calling ap_readdir. This was causing empty indexes to be created. The following patch fixes this problem Submitted by: Paul Reder Reviewed by: Bill Stoddard Revision Changes Path 1.13 +1 -1 apache-2.0/src/modules/standard/mod_autoindex.c Index: mod_autoindex.c =================================================================== RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_autoindex.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- mod_autoindex.c 1999/10/24 19:24:06 1.12 +++ mod_autoindex.c 1999/11/09 03:41:11 1.13 @@ -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,