diff options
author | 2002-07-10 11:34:55 +0000 | |
---|---|---|
committer | 2002-07-10 11:34:55 +0000 | |
commit | f330be1f2def0085528a355fe7e4bdbd1ed66f3f (patch) | |
tree | 2513ff0d71a651987c9b8738113f7a244c7a8b5d | |
parent | ICH4 support; ok gluk@ (diff) | |
download | wireguard-openbsd-f330be1f2def0085528a355fe7e4bdbd1ed66f3f.tar.xz wireguard-openbsd-f330be1f2def0085528a355fe7e4bdbd1ed66f3f.zip |
make work in chroot
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_auth.c | 4 |
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);*/ |