summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-07-10 11:34:56 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-07-10 11:34:56 +0000
commitd6876001c2314ddb97177e7e24c7f96b2f85dc53 (patch)
tree0d5e6c19598c161d3b78d057618ca69ef6e6c5f7 /usr.sbin/httpd
parenta9a7f7db6de2c220598dcd9c686204c5384a4169 (diff)
make work in chroot
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_auth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_auth.c b/usr.sbin/httpd/src/modules/standard/mod_auth.c
index f21683ce76c..2a9ec79307f 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_auth.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_auth.c
@@ -124,6 +124,8 @@ static char *get_pw(request_rec *r, char *user, char *auth_pwfile)
char l[MAX_STRING_LEN];
const char *rpw, *w;
+ ap_server_strip_chroot(auth_pwfile, 1);
+
if (!(f = ap_pcfg_openfile(r->pool, auth_pwfile))) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
"Could not open password file: %s", auth_pwfile);
@@ -152,6 +154,8 @@ static table *groups_for_user(pool *p, char *user, char *grpfile)
char l[MAX_STRING_LEN];
const char *group_name, *ll, *w;
+ ap_server_strip_chroot(grpfile, 1);
+
if (!(f = ap_pcfg_openfile(p, grpfile))) {
/*add? aplog_error(APLOG_MARK, APLOG_ERR, NULL,
"Could not open group file: %s", grpfile);*/