mirror of https://git.tukaani.org/xz.git
xz: Add warning if Capsicum sandbox system calls are unsupported.
The warning is only used when errno == ENOSYS. Otherwise, xz still issues a fatal error.
This commit is contained in:
parent
61ee82cb12
commit
5fb9367866
|
@ -238,6 +238,8 @@ capsicum_error:
|
|||
// implement the capability system calls, then the capsicum system
|
||||
// calls will fail and set errno to ENOSYS.
|
||||
if (errno == ENOSYS) {
|
||||
message_warning(_("%s: Cannot enable the sandbox"),
|
||||
strerror(errno));
|
||||
sandbox_allowed = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue