nvmutil: fix unveil call

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-19 20:40:42 +00:00
parent 3a0460607d
commit 3871c02cb5

View File

@@ -139,8 +139,8 @@ xstatus(int argc, char *argv[])
#if defined(__OpenBSD__) && defined(OpenBSD) && \ #if defined(__OpenBSD__) && defined(OpenBSD) && \
OpenBSD >= 604 OpenBSD >= 604
if (unveil(f->tname, "rwc") == -1) if (unveil(us.f.tname, "rwc") == -1)
err(errno, "unveil rwc: %s", f->tname); err(errno, "unveil rwc: %s", us.f.tname);
#endif #endif
if (fstat(us.f.tmp_fd, &us.f.tmp_st) < 0) if (fstat(us.f.tmp_fd, &us.f.tmp_st) < 0)
err(errno, "%s: stat", us.f.tname); err(errno, "%s: stat", us.f.tname);
@@ -158,7 +158,7 @@ xstatus(int argc, char *argv[])
err(errno, "%s: unveil r", us.f.fname); err(errno, "%s: unveil r", us.f.fname);
} else { } else {
if (unveil(us.f.fname, "rwc") == -1) if (unveil(us.f.fname, "rwc") == -1)
err(errno, "%s: unveil rw", us.f.tname); err(errno, "%s: unveil rw", us.f.fname);
} }
if (unveil(us.f.tname, "rwc") == -1) if (unveil(us.f.tname, "rwc") == -1)