Commit Diff


commit - 34875d49d76084b885a5ee82586965a633787bb2
commit + 960618864e42444ff7551785725705bc764c043f
blob - 30b45f5122dba4b58ca7b57ddfc0359ab3d2c9c7
blob + 65b1c7d988b4b7be2c7145371365b4a7c7c744e9
--- gotwebd/gotwebd.c
+++ 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 ||