#! /bin/sh /usr/share/dpatch/dpatch-run ## 02_rsrc_conf.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Added RSRC_CONF for suPHP_AddHandler and suPHP_RemoveHandler @DPATCH@ --- ./src/apache2/mod_suphp.c +++ ./src/apache2/mod_suphp.c @@ -321,8 +321,8 @@ AP_INIT_TAKE2("suPHP_UserGroup", suphp_handle_cmd_user_group, NULL, RSRC_CONF | ACCESS_CONF, "User and group scripts shall be run as"), #endif - AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"), - AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"), + AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"), + AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"), {NULL} }; --- ./src/apache/mod_suphp.c +++ ./src/apache/mod_suphp.c @@ -249,9 +249,9 @@ {"suPHP_UserGroup", suphp_handle_cmd_user_group, NULL, RSRC_CONF|ACCESS_CONF, TAKE2, "User and group scripts shall be run as"}, #endif - {"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF, + {"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF|ACCESS_CONF, ITERATE, "Tells mod_suphp to handle these MIME-types"}, - {"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, ACCESS_CONF, + {"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF|ACCESS_CONF, ITERATE, "Tells mod_suphp not to handle these MIME-types"}, {NULL} };