about summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-01-10 00:10:04 +0300
committerNakidai <nakidai@disroot.org>2026-01-10 00:10:04 +0300
commite7cb49752a9f15bda8f2c5c93ca0c37858f07c16 (patch)
treee60119f710400f169fa8ad6542ea604bcd6caea7 /main.c
parent8469256066dc37ac89c2258677f9d47adfca2031 (diff)
downloadlibreircd-e7cb49752a9f15bda8f2c5c93ca0c37858f07c16.tar.gz
libreircd-e7cb49752a9f15bda8f2c5c93ca0c37858f07c16.zip
Simplify pledge
In the past there was a configpath parameter, and unveil was allowing
to read at this path. But now accessing filesystem is redundant
completely
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index 66b3f7a..c93a84d 100644
--- a/main.c
+++ b/main.c
@@ -42,9 +42,7 @@ main(int argc, char **argv)
 		errx(1, "invalid port");
 
 #ifdef __OpenBSD__
-	if (unveil(NULL, NULL))
-		err(1, "unveil()");
-	if (pledge("stdio rpath inet", ""))
+	if (pledge("stdio inet", ""))
 		err(1, "pledge()");
 #endif /* __OpenBSD__ */