summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-05-20 17:05:43 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-05-20 17:05:43 +0200
commitcb46f849e4a85967102fd0ff37404bfb92aa0c13 (patch)
tree82b5a011eb65780db496adebe307ca2f1ea4644a /server
parentWin32: Call GetOverlappedResults to get the results of an async (diff)
downloadapache2-cb46f849e4a85967102fd0ff37404bfb92aa0c13.tar.xz
apache2-cb46f849e4a85967102fd0ff37404bfb92aa0c13.zip
A few noops (at the moment.) Prepare for stuffing the directive into
the conf tree, without reinvoking the directive, even when EXEC_ON_READ. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95186 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/config.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/server/config.c b/server/config.c
index 75cb3849f3..0b0ded380a 100644
--- a/server/config.c
+++ b/server/config.c
@@ -867,6 +867,7 @@ static const char *ap_build_config_sub(apr_pool_t *p, apr_pool_t *temp_pool,
ap_directive_t **curr_parent,
ap_directive_t **conftree)
{
+ const char *retval = NULL;
const char *args;
char *cmd_name;
ap_directive_t *newdir;
@@ -905,7 +906,6 @@ static const char *ap_build_config_sub(apr_pool_t *p, apr_pool_t *temp_pool,
if ((cmd = ap_find_command_in_modules(cmd_name, &mod)) != NULL) {
if (cmd->req_override & EXEC_ON_READ) {
- const char *retval;
ap_directive_t *sub_tree = NULL;
parms->err_directive = newdir;
@@ -915,7 +915,7 @@ static const char *ap_build_config_sub(apr_pool_t *p, apr_pool_t *temp_pool,
(*current)->next = sub_tree;
}
else {
- (*current) = sub_tree;
+ *current = sub_tree;
if (*curr_parent) {
(*curr_parent)->first_child = (*current);
}
@@ -979,7 +979,7 @@ static const char *ap_build_config_sub(apr_pool_t *p, apr_pool_t *temp_pool,
*current = ap_add_node(curr_parent, *current, newdir, 0);
}
- return NULL;
+ return retval;
}
AP_DECLARE(const char *) ap_build_cont_config(apr_pool_t *p,
@@ -1044,6 +1044,11 @@ static const char *ap_walk_config_sub(const ap_directive_t *current,
parms->pool);
const char *retval;
+ /* Once was enough? */
+ if (cmd->req_override & EXEC_ON_READ) {
+ return NULL;
+ }
+
retval = invoke_cmd(cmd, parms, dir_config, current->args);
if (retval == NULL) {
return NULL;