You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/04/22 18:43:46 UTC

cvs commit: httpd-2.0/server request.c

wrowe       02/04/22 09:43:46

  Modified:    server   request.c
  Log:
    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.
  
  Revision  Changes    Path
  1.109     +1 -0      httpd-2.0/server/request.c
  
  Index: request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/request.c,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -r1.108 -r1.109
  --- request.c	27 Mar 2002 22:42:16 -0000	1.108
  +++ request.c	22 Apr 2002 16:43:46 -0000	1.109
  @@ -764,6 +764,7 @@
                    * 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)