From fc61f692ca17860b6c8a889c7729c86d55a6f9fa Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 10 Jul 2002 12:12:02 +0000 Subject: works inside chroot now --- usr.sbin/httpd/src/modules/standard/mod_auth_db.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3