From 56ab5a18fee5257c3c875f2b8597b8379c7b959c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 16:35:40 +0000 Subject: mkhtemp: show progname on error i have my own getprogname implementation, because not every libc is good enough to include one. Signed-off-by: Leah Rowe --- util/libreboot-utils/nvmutil.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/libreboot-utils/nvmutil.c') diff --git a/util/libreboot-utils/nvmutil.c b/util/libreboot-utils/nvmutil.c index fb45a97c..da7d40ec 100644 --- a/util/libreboot-utils/nvmutil.c +++ b/util/libreboot-utils/nvmutil.c @@ -35,6 +35,9 @@ main(int argc, char *argv[]) size_t c; + if (lbgetprogname(argv[0]) == NULL) + err_no_cleanup(errno, "could not set progname"); + /* https://man.openbsd.org/pledge.2 https://man.openbsd.org/unveil.2 */ #if defined(__OpenBSD__) && defined(OpenBSD) -- cgit v1.2.1