From e7cb49752a9f15bda8f2c5c93ca0c37858f07c16 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 10 Jan 2026 00:10:04 +0300 Subject: 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 --- main.c | 4 +--- 1 file changed, 1 insertion(+), 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__ */ -- cgit 1.4.1