summaryrefslogtreecommitdiffstats
path: root/modules/arch
diff options
context:
space:
mode:
Diffstat (limited to 'modules/arch')
-rw-r--r--modules/arch/netware/mod_netware.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/arch/netware/mod_netware.c b/modules/arch/netware/mod_netware.c
index b2e3bdb6ed..ea9e0f62dd 100644
--- a/modules/arch/netware/mod_netware.c
+++ b/modules/arch/netware/mod_netware.c
@@ -167,9 +167,19 @@ static apr_status_t ap_cgi_build_command(const char **cmd, const char ***argv,
return APR_SUCCESS;
}
+static int
+netware_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
+ apr_pool_t *ptemp)
+{
+ sys_privileges_handlers(1);
+ return OK;
+}
+
static void register_hooks(apr_pool_t *p)
{
APR_REGISTER_OPTIONAL_FN(ap_cgi_build_command);
+ ap_hook_pre_config(netware_pre_config,
+ NULL, NULL, APR_HOOK_FIRST);
}
static const command_rec netware_cmds[] = {