From 6ba15c12c6b0c9a6b76a35edc40e54f7436ec620 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Mon, 3 Nov 2008 19:38:01 +0000 Subject: Make sure that the sys_privileges_handlers is set for the NetWare platform git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@710141 13f79535-47bb-0310-9956-ffa450edef68 --- modules/arch/netware/mod_netware.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/arch') 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[] = { -- cgit v1.2.3