mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil pledge,unveil: use correct err string
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user