On 20/04/09 19:59 , Marc Adkins wrote:
> Originally posted to the APR dev list. The response (from jTrawick) was
> as follows:
>
> The Perl code that builds the apr_file_open() flags needs to turn on
> APR_WRITE.
>
> I think that this patch to mod_perl is what you need:
>
> --- modperl_apr_perlio.c.orig 2007-12-31 02:39:50.000000000 -0500
> +++ modperl_apr_perlio.c 2009-04-20 19:37:25.954107404 -0400
> @@ -85,7 +85,7 @@
>
> switch (*mode) {
> case 'a':
> - apr_flag = APR_APPEND | APR_CREATE;
> + apr_flag = APR_WRITE | APR_CREATE | APR_APPEND;
> break;
> case 'w':
> apr_flag = APR_WRITE | APR_CREATE | APR_TRUNCATE;
>
>
> The rest of this email is my original post. I would still like a
> workaround is one exists.Looks sensible to me. The only issue I could see is if APR_WRITE was addeed at some point somewhat recently, and this change would break against older APRs. Might need a version check of some sort. Otherwise, +1 -- Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
signature.asc
Description: OpenPGP digital signature
