]> granicus.if.org Git - apache/commitdiff
improve readability a (little) bit
authorAndré Malo <nd@apache.org>
Sat, 1 Nov 2003 22:06:28 +0000 (22:06 +0000)
committerAndré Malo <nd@apache.org>
Sat, 1 Nov 2003 22:06:28 +0000 (22:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101657 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index bccc2f1e19b6ffea9fe5880a03433137eed1a214..dfe229b2748e219d7421f3b7f787f113e33c0c77 100644 (file)
@@ -1296,22 +1296,20 @@ static struct ent *make_autoindex_entry(const apr_finfo_t *dirent,
         || ((dirent->name[1] == '.') && !dirent->name[2])))
         return (NULL);
 
-#ifndef CASE_BLIND_FILESYSTEM
-    if (pattern && (apr_fnmatch(pattern, dirent->name,
-                                APR_FNM_NOESCAPE | APR_FNM_PERIOD)
-                        != APR_SUCCESS))
-        return (NULL);
-#else  /* !CASE_BLIND_FILESYSTEM */
-        /*
-         * On some platforms, the match must be case-blind.  This is really
-         * a factor of the filesystem involved, but we can't detect that
-         * reliably - so we have to granularise at the OS level.
-         */
+    /*
+     * On some platforms, the match must be case-blind.  This is really
+     * a factor of the filesystem involved, but we can't detect that
+     * reliably - so we have to granularise at the OS level.
+     */
     if (pattern && (apr_fnmatch(pattern, dirent->name,
-                                APR_FNM_NOESCAPE | APR_FNM_PERIOD | APR_FNM_CASE_BLIND)
-                        != APR_SUCCESS))
+                                APR_FNM_NOESCAPE | APR_FNM_PERIOD
+#ifdef CASE_BLIND_FILESYSTEM
+                                | APR_FNM_CASE_BLIND
+#endif
+                                )
+                    != APR_SUCCESS)) {
         return (NULL);
-#endif /* !CASE_BLIND_FILESYSTEM */
+    }
 
     if (ignore_entry(d, ap_make_full_path(r->pool,
                                           r->filename, dirent->name))) {