From 546565f32103da7fc66ddddeaabe9cbcc30c831a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 29 Mar 2026 07:09:06 +0100 Subject: cleanup Signed-off-by: Leah Rowe --- util/libreboot-utils/nvmutil.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util/libreboot-utils/nvmutil.c') diff --git a/util/libreboot-utils/nvmutil.c b/util/libreboot-utils/nvmutil.c index bab1945d..49d81a01 100644 --- a/util/libreboot-utils/nvmutil.c +++ b/util/libreboot-utils/nvmutil.c @@ -33,10 +33,11 @@ main(int argc, char *argv[]) size_t c; (void) errhook(exit_cleanup); - - if (lbgetprogname(argv[0]) == NULL) + if (lbsetprogname(argv[0]) == NULL) err_exit(errno, "could not set progname"); + /* https://man.openbsd.org/pledge.2 */ + /* https://man.openbsd.org/unveil.2 */ xpledgex("stdio flock rpath wpath cpath unveil", NULL); xunveilx("/dev/urandom", "r"); -- cgit v1.2.1