From ca503521697c8ff6833b57e6622a11d4fb5a1a98 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 28 Jun 2021 09:55:54 -0400 Subject: OpenBSD: unveil the log directory specifically The call to logOpen() will have already created the directory. Still use dataMkdir() as a convenient way to get the created path. --- chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.c b/chat.c index 3020be9..9934fc3 100644 --- a/chat.c +++ b/chat.c @@ -283,7 +283,7 @@ int main(int argc, char *argv[]) { #ifdef __OpenBSD__ if (self.restricted && log) { - const char *logdir = dataMkdir(""); + const char *logdir = dataMkdir("log"); int error = unveil(logdir, "wc"); if (error) err(EX_OSERR, "unveil"); } -- cgit 1.4.1