From: Bradley Nicholes Date: Mon, 3 Nov 2008 19:38:01 +0000 (+0000) Subject: Make sure that the sys_privileges_handlers is set for the NetWare platform X-Git-Tag: 2.3.0~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ba15c12c6b0c9a6b76a35edc40e54f7436ec620;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/arch/netware/mod_netware.c b/modules/arch/netware/mod_netware.c index b2e3bdb6ed0..ea9e0f62dd9 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[] = {