From f25a499ca02114f6c45bfa70234ffd6fa74d6802 Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 11 Sep 2024 03:14:36 -0600 Subject: [PATCH] scrut(1): fixes pledge(2) invocation --- src/scrut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrut.c b/src/scrut.c index cfdd923..41504d2 100644 --- a/src/scrut.c +++ b/src/scrut.c @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) { program_name = argv[0] == NULL ? program_name : argv[0]; #ifdef __OpenBSD__ - if (pledge("rpath stdio unveil", NULL) == -1) { + if (pledge("rpath stdio unveil", "") == -1) { perror(program_name); return EX_OSERR; }