diff options
author | Leah Rowe <leah@libreboot.org> | 2023-06-01 07:05:48 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-06-01 07:05:48 +0100 |
commit | 293ca0fcbb5b3cbf60c21f1a44241f7c11271513 (patch) | |
tree | c23c9ebdf7aa10f2c646fbee02a635655bf8a575 /util | |
parent | a1df8fd154718deee3bb8d17b365b03847cd4e73 (diff) |
util/nvmutil pledge,unveil: use correct err string
Diffstat (limited to 'util')
-rw-r--r-- | util/nvmutil/nvmutil.c | 4 |
1 files 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 } |