From 1ed2ca6b6977a6f8edea309d10bee0dbeb315d71 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 22:27:04 +0000 Subject: util/libreboot-utils: rename err() to b0rk() it behaves a bit differently than err(), so it's not good to confuse readers Signed-off-by: Leah Rowe --- util/libreboot-utils/nvmutil.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'util/libreboot-utils/nvmutil.c') 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); -- cgit v1.2.1