scrut(1): fixes pledge(2) invocation

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

View File

@ -46,7 +46,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("rpath stdio unveil", NULL) == -1) { if (pledge("rpath stdio unveil", "") == -1) {
perror(program_name); perror(program_name);
return EX_OSERR; return EX_OSERR;
} }