from reading up on pledge(), we need file system write access as well

This commit is contained in:
speedie 2023-03-31 16:02:00 +02:00
parent a97506b3b2
commit d4143fc077

View file

@ -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