0.6.1.20060928-1 release
[manu/suphp.git] / debian / patches / 02_rsrc_conf.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 02_rsrc_conf.dpatch by  <elacour@home-dn.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Added RSRC_CONF for suPHP_AddHandler and suPHP_RemoveHandler
6
7 @DPATCH@
8 --- ./src/apache2/mod_suphp.c
9 +++ ./src/apache2/mod_suphp.c
10 @@ -321,8 +321,8 @@
11      AP_INIT_TAKE2("suPHP_UserGroup", suphp_handle_cmd_user_group, NULL, RSRC_CONF | ACCESS_CONF,
12                    "User and group scripts shall be run as"),
13  #endif
14 -    AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"),
15 -    AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"),
16 +    AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"),
17 +    AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"),
18      {NULL}
19  };
20  
21 --- ./src/apache/mod_suphp.c
22 +++ ./src/apache/mod_suphp.c
23 @@ -249,9 +249,9 @@
24      {"suPHP_UserGroup", suphp_handle_cmd_user_group, NULL, 
25       RSRC_CONF|ACCESS_CONF, TAKE2, "User and group scripts shall be run as"},
26  #endif 
27 -    {"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF,
28 +    {"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF|ACCESS_CONF,
29       ITERATE, "Tells mod_suphp to handle these MIME-types"},
30 -    {"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, ACCESS_CONF,
31 +    {"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF|ACCESS_CONF,
32       ITERATE, "Tells mod_suphp not to handle these MIME-types"},
33      {NULL}
34  };