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 util.c
Date Fri, 24 Aug 2001 00:59:08 GMT
wrowe       01/08/23 17:59:08

  Modified:    server   util.c
  Log:
    I'm still not 100% certain on this test.  Regardless, it doesn't impact
    Unix, and this was the bug that Jeff's (none the less correct) fix masked.
  
  Revision  Changes    Path
  1.110     +2 -1      httpd-2.0/server/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util.c,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- util.c	2001/08/23 19:08:19	1.109
  +++ util.c	2001/08/24 00:59:08	1.110
  @@ -258,8 +258,9 @@
   AP_DECLARE(int) ap_os_is_path_absolute(apr_pool_t *p, const char *dir) 
   {
       const char *newpath;
  +    const char *ourdir = dir;
       if (apr_filepath_root(&newpath, &dir, 0, p) != APR_SUCCESS
  -            || strncmp(newpath, dir, strlen(newpath)) != 0) {
  +            || strncmp(newpath, ourdir, strlen(newpath)) != 0) {
           return 0;
       }
       return 1;
  
  
  

Mime
View raw message