diff options
author | Cliff Woolley <jwoolley@apache.org> | 2002-05-29 06:38:59 +0200 |
---|---|---|
committer | Cliff Woolley <jwoolley@apache.org> | 2002-05-29 06:38:59 +0200 |
commit | 90c19bdbd19d5a33e5e85292b01d4f5ad133ce8d (patch) | |
tree | 497d1935a5f5dc688bb5b195dccaceb1d9a64744 /modules/mappers/mod_rewrite.h | |
parent | Update transformations. (diff) | |
download | apache2-90c19bdbd19d5a33e5e85292b01d4f5ad133ce8d.tar.xz apache2-90c19bdbd19d5a33e5e85292b01d4f5ad133ce8d.zip |
Error out a bit more nicely if the RewriteMap prg: is not found. We
can't just apr_stat in the first init round because we haven't run
apr_tokenize_to_argv() yet, and it would be a relatively ugly hack to run
it twice just for that. Well, I suppose we could store the argv in the
rewritemap structure, but ... nah. With this, we shutdown (cleanly, as
opposed to the old exit(1) method) if we go to execute a rewritemap
and discover it doesn't exist, and log a nice descriptive message at the
end of the error_log.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_rewrite.h')
-rw-r--r-- | modules/mappers/mod_rewrite.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mappers/mod_rewrite.h b/modules/mappers/mod_rewrite.h index 7590c11278..14a4db7358 100644 --- a/modules/mappers/mod_rewrite.h +++ b/modules/mappers/mod_rewrite.h @@ -455,7 +455,7 @@ static apr_status_t rewritelock_create(server_rec *s, apr_pool_t *p); static apr_status_t rewritelock_remove(void *data); /* program map support */ -static void run_rewritemap_programs(server_rec *s, apr_pool_t *p); +static apr_status_t run_rewritemap_programs(server_rec *s, apr_pool_t *p); static apr_status_t rewritemap_program_child(apr_pool_t *p, const char *progname, apr_file_t **fpout, apr_file_t **fpin, apr_file_t **fperr); |