summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-06-28 09:55:54 -0400
committerJune McEnroe <june@causal.agency>2021-06-28 09:57:10 -0400
commitca503521697c8ff6833b57e6622a11d4fb5a1a98 (patch)
tree50cd7691e16d9ffa3bec24f1cea7e636f69bfac5
parentFreeBSD: Use capsicum_helpers.h (diff)
downloadcatgirl-ca503521697c8ff6833b57e6622a11d4fb5a1a98.tar.gz
catgirl-ca503521697c8ff6833b57e6622a11d4fb5a1a98.zip
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.
-rw-r--r--chat.c2
1 files changed, 1 insertions, 1 deletions
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");
 	}