summaryrefslogtreecommitdiff
path: root/util/nvmutil/lib
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-19 20:40:42 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-19 20:40:42 +0000
commit3871c02cb5731ca6529dcca718418a92d9c9e752 (patch)
treeb546cb1326732fe98ca3d0fb4a1d1e6d88bd16fd /util/nvmutil/lib
parent3a0460607dbb66094a26231c3fdb23b27305294a (diff)
nvmutil: fix unveil callHEADmaster
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib')
-rw-r--r--util/nvmutil/lib/state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/nvmutil/lib/state.c b/util/nvmutil/lib/state.c
index 9e7101bc..02a3e51c 100644
--- a/util/nvmutil/lib/state.c
+++ b/util/nvmutil/lib/state.c
@@ -139,8 +139,8 @@ xstatus(int argc, char *argv[])
#if defined(__OpenBSD__) && defined(OpenBSD) && \
OpenBSD >= 604
- if (unveil(f->tname, "rwc") == -1)
- err(errno, "unveil rwc: %s", f->tname);
+ if (unveil(us.f.tname, "rwc") == -1)
+ err(errno, "unveil rwc: %s", us.f.tname);
#endif
if (fstat(us.f.tmp_fd, &us.f.tmp_st) < 0)
err(errno, "%s: stat", us.f.tname);
@@ -158,7 +158,7 @@ xstatus(int argc, char *argv[])
err(errno, "%s: unveil r", us.f.fname);
} else {
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)