]> granicus.if.org Git - apache/commitdiff
Small optimization, if we are behind (at the 5th segment, for example),
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 22 Apr 2002 16:43:46 +0000 (16:43 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 22 Apr 2002 16:43:46 +0000 (16:43 +0000)
  catch up the segment-count-sorted directory list without string compares.
  Mostly affects win32 which jumps from seg 0 (root) to 4 for UNC path names.

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

server/request.c

index 42c8fe046b0b224e7a83662e1c71b1bdaff1627a..b871877ae5089c2c1d5ce4f4a0d63ea5ce079d59 100644 (file)
@@ -764,6 +764,7 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r)
                  * Otherwise, skip over the mismatches.
                  */
                 if (entry_core->d_components
+                    && (entry_core->d_components < seg)
                     && (entry_core->d_is_fnmatch
                         ? (apr_fnmatch(entry_core->d, r->filename,
                                        FNM_PATHNAME) != APR_SUCCESS)