From fb91f62cf4bebd8e71203607bbd9a1a4726a4af6 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 22 Apr 2002 16:43:46 +0000 Subject: [PATCH] Small optimization, if we are behind (at the 5th segment, for example), 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/server/request.c b/server/request.c index 42c8fe046b..b871877ae5 100644 --- a/server/request.c +++ b/server/request.c @@ -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) -- 2.40.0