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 2001/08/24 02:59:08 UTC

cvs commit: httpd-2.0/server util.c

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;