fix openbsd support

This commit is contained in:
speedie 2023-04-20 19:20:35 +02:00
parent 907b2883e1
commit 5baa811745

View file

@ -6591,7 +6591,7 @@ main(int argc, char *argv[])
setup();
#ifdef __OpenBSD__
if (pledge("stdio rpath proc exec ps", NULL) == -1)
if (pledge("stdio rpath wpath cpath proc exec ps", NULL) == -1)
die("pledge");
#endif /* __OpenBSD__ */
scan();