From a43daf2cf2a37f8c454c256dbe39f82ee0ec8d1c Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 11 Sep 2024 03:15:13 -0600 Subject: [PATCH] str(1): fixes pledge(2) invocation --- src/str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/str.c b/src/str.c index 834d607..6d80bff 100644 --- a/src/str.c +++ b/src/str.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) { program_name = argv[0] == NULL ? program_name : argv[0]; #ifdef __OpenBSD__ - if (pledge("stdio unveil", NULL) == -1 || unveil(NULL, NULL) == -1) { + if (pledge("stdio unveil", "") == -1 || unveil(NULL, NULL) == -1) { perror(program_name); return EX_OSERR; }