diff options
| author | Nakidai <nakidai@disroot.org> | 2026-01-10 00:10:04 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-01-10 00:10:04 +0300 |
| commit | e7cb49752a9f15bda8f2c5c93ca0c37858f07c16 (patch) | |
| tree | e60119f710400f169fa8ad6542ea604bcd6caea7 | |
| parent | 8469256066dc37ac89c2258677f9d47adfca2031 (diff) | |
| download | libreircd-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
| -rw-r--r-- | main.c | 4 |
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__ */ |