util/nvmutil: Use correct pledge promise (OpenBSD)

I assumed wpath was all that's needed, but this simply
allows writes.

rpath must be specified alongside wpath, for reads.

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-30 16:15:44 +01:00
parent 83ecf26833
commit f37bd75925
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ main(int argc, char *argv[])
const char *strMac = NULL, *strRMac = "??:??:??:??:??:??";
#ifdef __OpenBSD__
if (pledge("stdio wpath", NULL) == -1)
if (pledge("stdio rpath wpath", NULL) == -1)
err(errno, "pledge");
#endif