diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-10 12:12:02 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-10 12:12:02 +0000 |
commit | fc61f692ca17860b6c8a889c7729c86d55a6f9fa (patch) | |
tree | bdf973c7be5ac7cab9f5e0343a09dde7df7d37f2 /usr.sbin | |
parent | d6876001c2314ddb97177e7e24c7f96b2f85dc53 (diff) |
works inside chroot now
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_auth_db.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_auth_db.c b/usr.sbin/httpd/src/modules/standard/mod_auth_db.c index 487e51e1e6c..2f5f985a9cf 100644 --- a/usr.sbin/httpd/src/modules/standard/mod_auth_db.c +++ b/usr.sbin/httpd/src/modules/standard/mod_auth_db.c @@ -167,6 +167,8 @@ static char *get_db_pw(request_rec *r, char *user, const char *auth_dbpwfile) q.data = user; q.size = strlen(q.data); + ap_server_strip_chroot(auth_dbpwfile, 1); + #if defined(DB3) if ( db_create(&f, NULL, 0) != 0 || f->open(f, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) { |