snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit adc41956b3f1b6109934f5aa09f49d276dac153d
parent 2c7f60e2f00a3d9510fbab514120c431c8cd5002
Author: default <nobody@localhost>
Date:   Tue, 15 Nov 2022 08:24:03 +0100

Disabled unveil() temporarily.

Diffstat:
Mdata.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/data.c b/data.c @@ -79,11 +79,15 @@ int srv_open(char *basedir) if (error != NULL) srv_log(error); +/* disabled temporarily; messages can't be sent */ +#if 0 #ifdef __OpenBSD__ srv_debug(2, xs_fmt("Calling unveil()")); - unveil(basedir, "rwc"); - unveil(NULL, NULL); + unveil(basedir, "rwc"); + unveil("/usr/sbin", "x"); + unveil(NULL, NULL); #endif /* __OpenBSD__ */ +#endif return ret; }