]> granicus.if.org Git - apache/commitdiff
My initial changes failed to accomodate this faux entry.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 24 Aug 2001 03:40:18 +0000 (03:40 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 24 Aug 2001 03:40:18 +0000 (03:40 +0000)
  If you didn't see any <Directory > blocks working right, try
  this cvs update.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90610 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index df1012cb64aa3ef323908f7586008a4d58128b58..acf1916b3d1afec8bd9ac9e38a6fb07afab226b0 100644 (file)
@@ -133,7 +133,9 @@ static void *create_core_dir_config(apr_pool_t *a, char *dir)
         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;