mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +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;
|
(void)promises; (void)execpromises;
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if (pledge(promises, execpromises) == -1)
|
if (pledge(promises, execpromises) == -1)
|
||||||
err(ERR(), NULL);
|
err(ERR(), "pledge");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -386,7 +386,7 @@ xunveil(const char *path, const char *permissions)
|
|||||||
(void)path; (void)permissions;
|
(void)path; (void)permissions;
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if (unveil(path, permissions) == -1)
|
if (unveil(path, permissions) == -1)
|
||||||
err(ERR(), NULL);
|
err(ERR(), "unveil");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user