1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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

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