summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/nvmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/libreboot-utils/nvmutil.c')
-rw-r--r--util/libreboot-utils/nvmutil.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/libreboot-utils/nvmutil.c b/util/libreboot-utils/nvmutil.c
index da7d40ec..d9b91349 100644
--- a/util/libreboot-utils/nvmutil.c
+++ b/util/libreboot-utils/nvmutil.c
@@ -80,29 +80,29 @@ main(int argc, char *argv[])
if ((us.cmd[i].flags & O_ACCMODE) == O_RDONLY) {
if (unveil(us.f.fname, "r") == -1)
- err(errno, "%s: unveil r", us.f.fname);
+ b0rk(errno, "%s: unveil r", us.f.fname);
} else {
if (unveil(us.f.fname, "rwc") == -1)
- err(errno, "%s: unveil rw", us.f.fname);
+ b0rk(errno, "%s: unveil rw", us.f.fname);
}
if (unveil(us.f.tname, "rwc") == -1)
- err(errno, "unveil rwc: %s", us.f.tname);
+ b0rk(errno, "unveil rwc: %s", us.f.tname);
if (unveil(NULL, NULL) == -1)
- err(errno, "unveil block (rw)");
+ b0rk(errno, "unveil block (rw)");
if (pledge("stdio flock rpath wpath cpath", NULL) == -1)
- err(errno, "pledge (kill unveil)");
+ b0rk(errno, "pledge (kill unveil)");
#elif (OpenBSD) >= 509
if (pledge("stdio flock rpath wpath cpath", NULL) == -1)
- err(errno, "pledge");
+ b0rk(errno, "pledge");
#endif
#endif
if (cmd->run == NULL)
- err(errno, "Command not set");
+ b0rk(errno, "Command not set");
sanitize_command_list();
@@ -121,10 +121,10 @@ main(int argc, char *argv[])
write_to_gbe_bin();
if (exit_cleanup() == -1)
- err(EIO, "%s: close", f->fname);
+ b0rk(EIO, "%s: close", f->fname);
if (f->io_err_gbe_bin)
- err(EIO, "%s: error writing final file");
+ b0rk(EIO, "%s: error writing final file");
free_if_null(&f->tname);