Ted Rolle wrote:
[...]
The calling module has the responsibility of providing a good r->filename,
even when it's not used.

what's a good r->filename? /dev/null sounds good to me.


I believe if you want to make fix-it-behind-the-scenes for all, httpd needs to check whether r->filename is set after trans_hook is done, and if it's NULL, set it to that good filename. Hopefully none of the following hooks will try to use that good filename for anything. The fact that we get the segfault is that it *is* being used when it shouldn't (since there is no corresponding filename for the virtual resource), so it's the right thing to check for r->filename not being NULL before trying to use it.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to