From 8bdb72ece81eccb5bb823118ebace19efa0a70c1 Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 11 Sep 2024 03:19:56 -0600 Subject: [PATCH] false(1): fixes pledge(2) invocation --- src/false.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/false.c b/src/false.c index 191cfce..3cea001 100644 --- a/src/false.c +++ b/src/false.c @@ -8,13 +8,12 @@ */ #ifdef __OpenBSD__ -# include /* NULL, pledge(2), unveil(2) */ +# include /* pledge(2) */ #endif int main(void) { #ifdef __OpenBSD__ - (void)pledge(NULL, NULL); - (void)unveil(NULL, NULL); + (void)pledge("stdio", ""); #endif return 1; }