diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-10 10:06:52 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-10 10:06:52 +0000 |
commit | 41c9576133e2a7de41bdcf21637fe7f33bdc60b0 (patch) | |
tree | 8184e1761c6397800dd8bc8d14cc5b32d7be7a84 /usr.sbin/httpd | |
parent | c4c6aec59a47a1438ea06f45792a39816b70f644 (diff) |
make UserDir work w/ chroot.
of course the userdirs must still live inside /var/www/.
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_userdir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_userdir.c b/usr.sbin/httpd/src/modules/standard/mod_userdir.c index b21471b8ace..e73d8b67003 100644 --- a/usr.sbin/httpd/src/modules/standard/mod_userdir.c +++ b/usr.sbin/httpd/src/modules/standard/mod_userdir.c @@ -182,6 +182,7 @@ static const char *set_user_dir(cmd_parms *cmd, void *dummy, char *arg) } } s_cfg->userdir = ap_pstrdup(cmd->pool, arg); + ap_server_strip_chroot(s_cfg->userdir, 1); #if defined(WIN32) || defined(OS2) || defined(NETWARE) /* These are incomplete paths, so we cannot canonicalize them yet. * but any backslashes will confuse the parser, later, so simply |