From 960618864e42444ff7551785725705bc764c043f Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Fri, 8 Dec 2023 08:21:41 +0000 Subject: [PATCH] repair the "chroot" option in /etc/gotwebd.conf This option was being ignored since the proc.c refactoring. Problem noticed by mlarkin@ ok op@ mlarkin@ --- gotwebd/gotwebd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gotwebd/gotwebd.c b/gotwebd/gotwebd.c index 30b45f51..65b1c7d9 100644 --- a/gotwebd/gotwebd.c +++ b/gotwebd/gotwebd.c @@ -343,8 +343,8 @@ main(int argc, char **argv) setproctitle("sockets"); log_procinit("sockets"); - if (chroot(pw->pw_dir) == -1) - fatal("chroot %s", pw->pw_dir); + if (chroot(env->httpd_chroot) == -1) + fatal("chroot %s", env->httpd_chroot); if (chdir("/") == -1) fatal("chdir /"); if (setgroups(1, &pw->pw_gid) == -1 || -- 2.11.4.GIT