]> granicus.if.org Git - apache/commitdiff
Once again, allow <Directory "C:\Users\*\html_files"> or other wildcard
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 14 Jan 2003 03:01:52 +0000 (03:01 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 14 Jan 2003 03:01:52 +0000 (03:01 +0000)
  patterns in Directory blocks.  Note a similar problem with Includes *.conf

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

server/config.c
server/core.c

index c25e8f928237c5222cc7399f66054ec221874f0e..b50adbd606aebc94a1c4729491eb473b36d2bab6 100644 (file)
@@ -1445,6 +1445,9 @@ AP_DECLARE(void) ap_process_resource_config(server_rec *s, const char *fname,
     ap_configfile_t *cfp;
     int ispatt;
 
+    /* XXX: lstat() won't work on the wildcard pattern...
+     */
+
     /* don't require conf/httpd.conf if we have a -C or -c switch */
     if ((ap_server_pre_read_config->nelts
         || ap_server_post_read_config->nelts)
index 18e8e04b30f08ab15381120c8470aa9ce627b3b7..6c1743318e1ee76c525504456d218dafb472ead8 100644 (file)
@@ -1635,8 +1635,9 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg)
         /*
          * Ensure that the pathname is canonical, and append the trailing /
          */
-        if (apr_filepath_merge(&newpath, NULL, cmd->path,
-                               APR_FILEPATH_TRUENAME, cmd->pool) != APR_SUCCESS) {
+        apr_status_t rv = apr_filepath_merge(&newpath, NULL, cmd->path,
+                                             APR_FILEPATH_TRUENAME, cmd->pool);
+        if (rv != APR_SUCCESS && rv != APR_EPATHWILD) {
             return apr_pstrcat(cmd->pool, "<Directory \"", cmd->path,
                                "\"> path is invalid.", NULL);
         }
@@ -2191,6 +2192,9 @@ static const char *include_config (cmd_parms *cmd, void *dummy,
 {
     ap_directive_t *conftree = NULL;
     const char* conffile = ap_server_root_relative(cmd->pool, name);
+
+    /* XXX: ap_server_root_relative won't work on the wildcard pattern...
+     */
     
     if (!conffile) {
         return apr_pstrcat(cmd->pool, "Invalid Include path ",