From e0b5467fb64f648201da75037c8c7af1d128806a Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 11 Sep 2024 03:13:38 -0600 Subject: [PATCH] npc(1): fixes pledge invocation --- src/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/npc.c b/src/npc.c index 67d7f28..e00b36e 100644 --- a/src/npc.c +++ b/src/npc.c @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) { char showtab = 0; /* prints tab characters in caret notation */ #ifdef __OpenBSD__ - if (pledge("stdio unveil", NULL) == -1 || unveil(NULL, NULL)) { + if (pledge("stdio unveil", "") == -1 || unveil(NULL, NULL)) { perror(argv[0] == NULL ? program_name : argv[0]); return EX_OSERR; }