str(1): fixes pledge(2) invocation

This commit is contained in:
Emma Tebibyte 2024-09-11 03:15:13 -06:00
parent f25a499ca0
commit a43daf2cf2
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -62,7 +62,7 @@ int main(int argc, char *argv[]) {
program_name = argv[0] == NULL ? program_name : argv[0]; program_name = argv[0] == NULL ? program_name : argv[0];
#ifdef __OpenBSD__ #ifdef __OpenBSD__
if (pledge("stdio unveil", NULL) == -1 || unveil(NULL, NULL) == -1) { if (pledge("stdio unveil", "") == -1 || unveil(NULL, NULL) == -1) {
perror(program_name); perror(program_name);
return EX_OSERR; return EX_OSERR;
} }