about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-10-30 16:28:36 -0400
committerJune McEnroe <june@causal.agency>2022-10-30 16:28:36 -0400
commitcd2e8408997a37895c5f8a0c148fd521725380af (patch)
treedc8f356a9413512ee99626e31bba02c79ad0d84a
parentUse xdg.c for pounce-palaver (diff)
downloadpounce-cd2e8408997a37895c5f8a0c148fd521725380af.tar.gz
pounce-cd2e8408997a37895c5f8a0c148fd521725380af.zip
OpenBSD: Fix broken unveil in calico on 7.2
Relevant OpenBSD changelog:

> o AF_UNIX socket bind(2) and connect(2) now follow unveil(2)
>   configuration.
Diffstat (limited to '')
-rw-r--r--dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dispatch.c b/dispatch.c
index f02137e..6353686 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
 	}
 
 #ifdef __OpenBSD__
-	error = unveil(path, "r");
+	error = unveil(path, "rw");
 	if (error) err(EX_OSERR, "unveil");
 
 	error = pledge("stdio rpath inet unix dns sendfd", NULL);