From: Stefan Sperling Subject: Re: gotwebd: ensure child procs inherit -f conffile To: Mark Jamsek Cc: gameoftrees@openbsd.org Date: Tue, 19 Nov 2024 14:03:47 +0100 On Tue, Nov 19, 2024 at 11:57:37PM +1100, Mark Jamsek wrote: > The below diff fixes a bug in gotwebd where a non-default config file > is effectively ignored as child processes always use either the default > config filepath (i.e., /etc/gotwebd.conf) or default options if no file > exists at the default path. So if the `chroot` and/or `user` options, > for example, set non-default values, they're silently ignored; the > default chroot (/var/www) and user (www) are used instead. > > The diff restores the previous proc.c behaviour of copying the > -f optarg to the child process argv. ok