i now know what pledge() does on openbsd
This commit is contained in:
parent
225b260026
commit
a97506b3b2
2
spmenu.c
2
spmenu.c
|
@ -684,7 +684,7 @@ main(int argc, char *argv[])
|
|||
lrpad = drw->font->h + textpadding;
|
||||
prepare_window_size(); // this function sets padding size
|
||||
|
||||
// openbsd specifics, i use gnu/linux so i have no idea why this is here
|
||||
// pledge limits what programs can do, so here we specify what spmenu should be allowed to do
|
||||
#ifdef __OpenBSD__
|
||||
if (pledge("stdio rpath", NULL) == -1)
|
||||
die("pledge");
|
||||
|
|
Loading…
Reference in a new issue