summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-07-12 14:24:03 +0000
committerhenning <henning@openbsd.org>2002-07-12 14:24:03 +0000
commit04651b995ec80af6c50e39f3fa5bcbe1cccadcb6 (patch)
treee837b0f41b53b97811e369bf890addc5ee560480 /usr.sbin/httpd/src
parentDetect the case where we LK_RELEASE a lock when noone is holding it. (diff)
downloadwireguard-openbsd-04651b995ec80af6c50e39f3fa5bcbe1cccadcb6.tar.xz
wireguard-openbsd-04651b995ec80af6c50e39f3fa5bcbe1cccadcb6.zip
chroot aware
testing help by nick@
Diffstat (limited to 'usr.sbin/httpd/src')
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c b/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c
index 3baa9a657e5..8c295364387 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_vhost_alias.c
@@ -184,6 +184,8 @@ static const char *vhost_alias_set(cmd_parms *cmd, void *dummy, char *map)
return "INTERNAL ERROR: unknown command info";
}
+ ap_server_strip_chroot(map, 1);
+
if (!(ap_os_is_path_absolute(map))) {
if (strcasecmp(map, "none")) {
return "format string must be an absolute file path or 'none'";