summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/nginx/README.OpenBSD1
-rw-r--r--usr.sbin/nginx/src/http/modules/ngx_http_auth_basic_module.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/nginx/README.OpenBSD b/usr.sbin/nginx/README.OpenBSD
index ec94080f285..8e819955302 100644
--- a/usr.sbin/nginx/README.OpenBSD
+++ b/usr.sbin/nginx/README.OpenBSD
@@ -15,6 +15,7 @@ Modified files by OpenBSD:
- src/core/ngx_string.h
- src/http/ngx_http_core_module.c
- src/http/ngx_http_request.c
+- src/http/modules/ngx_http_auth_basic_module.c
- src/http/modules/ngx_http_log_module.c
- src/os/unix/ngx_process_cycle.c
- src/os/unix/ngx_process_cycle.h
diff --git a/usr.sbin/nginx/src/http/modules/ngx_http_auth_basic_module.c b/usr.sbin/nginx/src/http/modules/ngx_http_auth_basic_module.c
index ec3b1cf9500..0bc39bbba17 100644
--- a/usr.sbin/nginx/src/http/modules/ngx_http_auth_basic_module.c
+++ b/usr.sbin/nginx/src/http/modules/ngx_http_auth_basic_module.c
@@ -464,6 +464,10 @@ ngx_http_auth_basic_user_file(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t));
+ if (ngx_chrooted) {
+ ngx_strip_chroot(&value[1]);
+ }
+
ccv.cf = cf;
ccv.value = &value[1];
ccv.complex_value = &alcf->user_file;