From 5fb936786601a1cd013a5d436adde65982b1e13c Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Mon, 6 Mar 2023 21:37:45 +0800 Subject: [PATCH] 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. --- src/xz/file_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xz/file_io.c b/src/xz/file_io.c index 71b5377e..1a7dac13 100644 --- a/src/xz/file_io.c +++ b/src/xz/file_io.c @@ -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; }