"GOT", but the "O" is a cute, smiling sun Index | Thread

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: gotwebd.conf: add varset and include
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Sun, 25 Sep 2022 18:46:50 +0200

Download raw body.

On Sun, Sep 25, 2022 at 06:38:12PM +0200, Omar Polo wrote:
> gotwebd' parse.y is derived from the "usual" parse.y, yet it doesn't
> have `include's nor the macro syntax, yet it has -D.  Don't know if it
> was a deliberate decision, but I personally like having the include
> and variables available.  (i've also took the liberty to rename
> newfile/closefile to pushfile/popfile to be closer to the other
> parse.y files.)
> 
> the manpage wording is stolen from smtpd.conf, vm.conf and httd.conf.
> 
> ok?

I suspect the lack of variables is just an oversight.
We definitely want those.

Regarding include, it adds some complexity which can sometimes backfire.
E.g. what happens if an included file overrides a variable used by
the outer file before and after the inner file gets included?
Are we really sure we need this for gotwebd? What is your use case?