diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-03-06 21:37:45 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-03-06 21:37:45 +0800 |
commit | 5fb936786601a1cd013a5d436adde65982b1e13c (patch) | |
tree | 2680f7295eb89a686e08de950f1647016717ea76 /src/xz/file_io.c | |
parent | xz: Skip Capsicum sandbox system calls when they are unsupported. (diff) | |
download | xz-5fb936786601a1cd013a5d436adde65982b1e13c.tar.xz |
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.
Diffstat (limited to 'src/xz/file_io.c')
-rw-r--r-- | src/xz/file_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |