]> granicus.if.org Git - apache/commitdiff
Make sure we request the APR_FINFO_TYPE on the apr_dir_read() for wildcard
authorGraham Leggett <minfrin@apache.org>
Mon, 1 Mar 2010 22:19:33 +0000 (22:19 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 1 Mar 2010 22:19:33 +0000 (22:19 +0000)
configuration.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@917759 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index d073adae9a777384c35805ad38fe8f604b6deb58..7378e8263d01dec246e400ed08400a28d628fd49 100644 (file)
@@ -1704,7 +1704,7 @@ static const char *process_resource_config_fnmatch(server_rec *s,
     }
 
     candidates = apr_array_make(ptemp, 1, sizeof(fnames));
-    while (apr_dir_read(&dirent, APR_FINFO_DIRENT, dirp) == APR_SUCCESS) {
+    while (apr_dir_read(&dirent, APR_FINFO_DIRENT | APR_FINFO_TYPE, dirp) == APR_SUCCESS) {
         /* strip out '.' and '..' */
         if (strcmp(dirent.name, ".")
             && strcmp(dirent.name, "..")