1
===================================================================
2
RCS file: /home/cvspublic/httpd-2.0/modules/generators/mod_autoindex.c,v
3
retrieving revision 1.132
4
retrieving revision 1.133
5
diff -u -r1.132 -r1.133
6
--- build-tree/apache2/modules/generators/mod_autoindex.c 2004/02/09 20:29:19 1.132
7
+++ build-tree/apache2/modules/generators/mod_autoindex.c 2004/03/10 20:51:10 1.133
9
fullpath = apr_palloc(r->pool, APR_PATH_MAX);
10
dirpathlen = strlen(name);
11
memcpy(fullpath, name, dirpathlen);
12
- while (apr_dir_read(&dirent, APR_FINFO_MIN | APR_FINFO_NAME,
13
- thedir) == APR_SUCCESS) {
16
+ status = apr_dir_read(&dirent, APR_FINFO_MIN | APR_FINFO_NAME, thedir);
17
+ if (APR_STATUS_IS_INCOMPLETE(status)) {
18
+ continue; /* ignore un-stat()able files */
20
+ else if (status != APR_SUCCESS) {
24
/* We want to explode symlinks here. */
25
if (dirent.filetype == APR_LNK) {
35
ar = (struct ent **) apr_palloc(r->pool,
36
num_ent * sizeof(struct ent *));