httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server request.c
Date Mon, 22 Apr 2002 17:33:29 GMT
wrowe       02/04/22 10:33:29

  Modified:    server   request.c
  Log:
    Fix this optimization.  We will skip along so long as we aren't at the
    right number of components, -or- we mismatch on the current component.
  
  Revision  Changes    Path
  1.110     +5 -5      httpd-2.0/server/request.c
  
  Index: request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/request.c,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- request.c	22 Apr 2002 16:43:46 -0000	1.109
  +++ request.c	22 Apr 2002 17:33:28 -0000	1.110
  @@ -764,11 +764,11 @@
                    * 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)
  -                        : (strcmp(r->filename, entry_core->d) != 0))) {
  +                    && ((entry_core->d_components < seg)
  +                     || (entry_core->d_is_fnmatch
  +                         ? (apr_fnmatch(entry_core->d, r->filename,
  +                                        FNM_PATHNAME) != APR_SUCCESS)
  +                         : (strcmp(r->filename, entry_core->d) != 0)))) {
                       continue;
                   }
   
  
  
  

Mime
View raw message