strcmp(1): fixes pledge(2) invocation
This commit is contained in:
parent
a43daf2cf2
commit
8f1e570b50
@ -29,7 +29,7 @@ int main(int argc, char *argv[]) {
|
|||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if (pledge("stdio unveil", NULL) == -1 || unveil(NULL, NULL) == -1) {
|
if (pledge("stdio unveil", "") == -1 || unveil(NULL, NULL) == -1) {
|
||||||
perror(argv[0] == NULL ? program_name : argv[0]);
|
perror(argv[0] == NULL ? program_name : argv[0]);
|
||||||
|
|
||||||
return EX_OSERR;
|
return EX_OSERR;
|
||||||
|
Loading…
Reference in New Issue
Block a user