false(1): fixes pledge(2) invocation

This commit is contained in:
Emma Tebibyte 2024-09-11 03:19:56 -06:00
parent ba73f50527
commit 8bdb72ece8
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -8,13 +8,12 @@
*/ */
#ifdef __OpenBSD__ #ifdef __OpenBSD__
# include <unistd.h> /* NULL, pledge(2), unveil(2) */ # include <unistd.h> /* pledge(2) */
#endif #endif
int main(void) { int main(void) {
#ifdef __OpenBSD__ #ifdef __OpenBSD__
(void)pledge(NULL, NULL); (void)pledge("stdio", "");
(void)unveil(NULL, NULL);
#endif #endif
return 1; return 1;
} }