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