From 293ca0fcbb5b3cbf60c21f1a44241f7c11271513 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 1 Jun 2023 07:05:48 +0100 Subject: [PATCH] util/nvmutil pledge,unveil: use correct err string --- util/nvmutil/nvmutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 9d2c860c..c0873a25 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -376,7 +376,7 @@ xpledge(const char *promises, const char *execpromises) (void)promises; (void)execpromises; #ifdef __OpenBSD__ if (pledge(promises, execpromises) == -1) - err(ERR(), NULL); + err(ERR(), "pledge"); #endif } @@ -386,7 +386,7 @@ xunveil(const char *path, const char *permissions) (void)path; (void)permissions; #ifdef __OpenBSD__ if (unveil(path, permissions) == -1) - err(ERR(), NULL); + err(ERR(), "unveil"); #endif }