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 core.c
Date Fri, 24 Aug 2001 03:40:18 GMT
wrowe       01/08/23 20:40:18

  Modified:    server   core.c
  Log:
    My initial changes failed to accomodate this faux entry.
    If you didn't see any <Directory > blocks working right, try
    this cvs update.
  
  Revision  Changes    Path
  1.43      +3 -1      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- core.c	2001/08/23 23:49:41	1.42
  +++ core.c	2001/08/24 03:40:18	1.43
  @@ -133,7 +133,9 @@
           conf->d = apr_pstrcat(a, dir, "/", NULL);
       }
       conf->d_is_fnmatch = conf->d ? (apr_is_fnmatch(conf->d) != 0) : 0;
  -    conf->d_is_absolute = conf->d ? (ap_os_is_path_absolute(a, conf->d) != 0)
: 0;
  +    /* On all platforms, "/" is (at minimum) a faux root */
  +    conf->d_is_absolute = conf->d ? (ap_os_is_path_absolute(a, conf->d) 
  +                                      || strcmp(conf->d, "/")) : 0;
       conf->d_components = conf->d ? ap_count_dirs(conf->d) : 0;
   
       conf->opts = dir ? OPT_UNSET : OPT_UNSET|OPT_ALL;
  
  
  

Mime
View raw message