str(1): fixes pledge(2) invocation
This commit is contained in:
parent
f25a499ca0
commit
a43daf2cf2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user