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:
Jia Tan 2023-03-06 21:37:45 +08:00
parent 61ee82cb12
commit 5fb9367866
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}