forked from speedie/spmenu
from reading up on pledge(), we need file system write access as well
This commit is contained in:
parent
a97506b3b2
commit
d4143fc077
2
spmenu.c
2
spmenu.c
|
@ -686,7 +686,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
// pledge limits what programs can do, so here we specify what spmenu should be allowed to do
|
// pledge limits what programs can do, so here we specify what spmenu should be allowed to do
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if (pledge("stdio rpath", NULL) == -1)
|
if (pledge("stdio rpath wpath cpath", NULL) == -1)
|
||||||
die("pledge");
|
die("pledge");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue