]>
Commit | Line | Data |
---|---|---|
fbf44927 | 1 | diff -urN suphp-0.5.2.org/src/apache2/mod_suphp.c suphp-0.5.2/src/apache2/mod_suphp.c |
e3618f87 AM |
2 | --- suphp-0.5.2.org/src/apache2/mod_suphp.c 2004-10-23 12:58:09.156787800 +0200 |
3 | +++ suphp-0.5.2/src/apache2/mod_suphp.c 2004-10-23 12:59:23.461491768 +0200 | |
4 | @@ -56,7 +56,7 @@ | |
5 | return -1; | |
6 | ||
7 | rv = apr_bucket_read(b, &bucket_data, &bucket_data_len, APR_BLOCK_READ); | |
8 | - if (!APR_STATUS_IS_SUCCESS(rv) || (bucket_data_len == 0)) | |
9 | + if (rv != APR_SUCCESS || (bucket_data_len == 0)) | |
10 | { | |
11 | return 0; | |
12 | } | |
087a6fa4 JR |
13 | @@ -313,8 +313,8 @@ |
14 | AP_INIT_TAKE2("suPHP_UserGroup", suphp_handle_cmd_user_group, NULL, RSRC_CONF | ACCESS_CONF, | |
15 | "User and group scripts shall be run as"), | |
16 | #endif | |
17 | - AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"), | |
18 | - AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"), | |
19 | + AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"), | |
20 | + AP_INIT_ITERATE("suPHP_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp not to handle these MIME-types"), | |
21 | {NULL} | |
22 | }; | |
23 | ||
fbf44927 AM |
24 | @@ -524,7 +524,7 @@ |
25 | return rv; | |
26 | } | |
27 | ||
28 | - APR_BRIGADE_FOREACH(bucket, bb) | |
29e96c2d | 29 | + for(bucket = APR_BRIGADE_FIRST(bb); bucket != APR_BRIGADE_SENTINEL(bb); bucket = APR_BUCKET_NEXT(bucket)) |
fbf44927 AM |
30 | { |
31 | const char *data; | |
32 | apr_size_t len; | |
33 | @@ -595,7 +595,7 @@ | |
34 | ||
35 | const char *buf; | |
36 | apr_size_t blen; | |
37 | - APR_BRIGADE_FOREACH(b, bb) | |
29e96c2d | 38 | + for(b = APR_BRIGADE_FIRST(bb); b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b)) |
fbf44927 AM |
39 | { |
40 | if (APR_BUCKET_IS_EOS(b)) | |
41 | break; | |
42 | @@ -616,7 +616,7 @@ | |
43 | /* empty brigade (script output) */ | |
44 | const char *buf; | |
45 | apr_size_t blen; | |
46 | - APR_BRIGADE_FOREACH(b, bb) | |
29e96c2d | 47 | + for(b = APR_BRIGADE_FIRST(bb); b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b)) |
fbf44927 AM |
48 | { |
49 | if (APR_BUCKET_IS_EOS(b)) | |
50 | break; | |
83fb62fd JR |
51 | diff -ur suphp-0.6.1/acinclude.m4 suphp-0.6.1.apr/acinclude.m4 |
52 | --- suphp-0.6.1/acinclude.m4 2005-11-26 20:45:49.000000000 +0100 | |
53 | +++ suphp-0.6.1.apr/acinclude.m4 2006-01-27 18:53:40.000000000 +0100 | |
54 | @@ -40,7 +40,7 @@ | |
55 | dnl value of apr_config to fetch any necessary build/link information. | |
56 | dnl | |
57 | ||
58 | -AC_DEFUN(APR_FIND_APR, [ | |
59 | +AC_DEFUN([APR_FIND_APR], [ | |
60 | apr_found="no" | |
61 | ||
62 | if test "$ac_cv_emxos2" = "yes"; then | |
63 | @@ -53,18 +53,18 @@ | |
64 | AC_MSG_CHECKING(for APR) | |
65 | AC_ARG_WITH(apr, | |
66 | [ --with-apr=DIR|FILE prefix for installed APR, path to APR build tree, | |
67 | - or the full path to apr-config], | |
68 | + or the full path to apr-1-config], | |
69 | [ | |
70 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
71 | AC_MSG_ERROR([--with-apr requires a directory to be provided]) | |
72 | fi | |
73 | ||
74 | - if $TEST_X "$withval/bin/apr-config"; then | |
75 | + if $TEST_X "$withval/bin/apr-1-config"; then | |
76 | apr_found="yes" | |
77 | - apr_config="$withval/bin/apr-config" | |
78 | - elif $TEST_X "$withval/apr-config"; then | |
79 | + apr_config="$withval/bin/apr-1-config" | |
80 | + elif $TEST_X "$withval/apr-1-config"; then | |
81 | apr_found="yes" | |
82 | - apr_config="$withval/apr-config" | |
83 | + apr_config="$withval/apr-1-config" | |
84 | elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
85 | apr_found="yes" | |
86 | apr_config="$withval" | |
87 | @@ -73,7 +73,7 @@ | |
88 | dnl if --with-apr is used, then the target prefix/directory must be valid | |
89 | if test "$apr_found" != "yes"; then | |
90 | AC_MSG_ERROR([the --with-apr parameter is incorrect. It must specify an install prefix, a | |
91 | -build directory, or an apr-config file.]) | |
92 | +build directory, or an apr-1-config file.]) | |
93 | fi | |
94 | ],[ | |
95 | dnl if we have a bundled source directory, use it | |
96 | @@ -81,21 +81,21 @@ | |
97 | apr_temp_abs_srcdir="`cd $1 && pwd`" | |
98 | apr_found="reconfig" | |
99 | if test -n "$2"; then | |
100 | - apr_config="$2/apr-config" | |
101 | + apr_config="$2/apr-1-config" | |
102 | else | |
103 | - apr_config="$1/apr-config" | |
104 | + apr_config="$1/apr-1-config" | |
105 | fi | |
106 | fi | |
107 | if test "$apr_found" = "no" && test -n "$3" && test "$3" = "1"; then | |
108 | - if apr-config --help > /dev/null 2>&1 ; then | |
109 | + if apr-1-config --help > /dev/null 2>&1 ; then | |
110 | apr_found="yes" | |
111 | - apr_config="apr-config" | |
112 | + apr_config="apr-1-config" | |
113 | else | |
114 | dnl look in some standard places (apparently not in builtin/default) | |
115 | for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do | |
116 | - if $TEST_X "$lookdir/bin/apr-config"; then | |
117 | + if $TEST_X "$lookdir/bin/apr-1-config"; then | |
118 | apr_found="yes" | |
119 | - apr_config="$lookdir/bin/apr-config" | |
120 | + apr_config="$lookdir/bin/apr-1-config" | |
121 | break | |
122 | fi | |
123 | done |