diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-30 08:23:29 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-30 08:23:29 +0000 |
commit | 0fa624d908b5393f379076b60a0a9a88c50c4e7b (patch) | |
tree | 537c33622d16cbe4f4b853b506adc8e71265fd88 | |
parent | 653f8f659f3f1a4e8f144159c85d8965a0a8f1fa (diff) |
two more strip_chroot
found by Steph <sengel@melshake.com>, who also tested this.
I'm very happy with the way you help here. Thanks a lot.
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_rewrite.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_rewrite.c b/usr.sbin/httpd/src/modules/standard/mod_rewrite.c index f138b546c52..953b351572a 100644 --- a/usr.sbin/httpd/src/modules/standard/mod_rewrite.c +++ b/usr.sbin/httpd/src/modules/standard/mod_rewrite.c @@ -515,6 +515,10 @@ static const char *cmd_rewritemap(cmd_parms *cmd, void *dconf, char *a1, new->fpin = -1; new->fpout = -1; + /* yes, we do it twice. needed for restart awareness */ + ap_server_strip_chroot(new->checkfile, 0); + ap_server_strip_chroot(new->datafile, 0); + if (new->checkfile && (sconf->state == ENGINE_ENABLED) && (stat(new->checkfile, &st) == -1)) { return ap_pstrcat(cmd->pool, @@ -522,6 +526,9 @@ static const char *cmd_rewritemap(cmd_parms *cmd, void *dconf, char *a1, new->checkfile, NULL); } + ap_server_strip_chroot(new->checkfile, 1); + ap_server_strip_chroot(new->datafile, 1); + return NULL; } |