]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Fix Capsicum sandbox compile error.
authorJia Tan <jiat0218@gmail.com>
Fri, 23 Feb 2024 12:27:15 +0000 (20:27 +0800)
committerJia Tan <jiat0218@gmail.com>
Fri, 23 Feb 2024 12:27:15 +0000 (20:27 +0800)
user_abort_pipe[] was still being used instead of the parameters.

src/xz/sandbox.c

index 9e30a07a2cbce353456b9475d038af0034624c53..3b3069c8b2c8b2d3fb3a0f98822379e66a393a47 100644 (file)
@@ -330,11 +330,11 @@ sandbox_enable_strict_if_allowed(
                        CAP_WRITE)))
                goto error;
 
-       if (cap_rights_limit(user_abort_pipe[0], cap_rights_init(&rights,
+       if (cap_rights_limit(pipe_event_fd, cap_rights_init(&rights,
                        CAP_EVENT)))
                goto error;
 
-       if (cap_rights_limit(user_abort_pipe[1], cap_rights_init(&rights,
+       if (cap_rights_limit(pipe_write_fd, cap_rights_init(&rights,
                        CAP_WRITE)))
                goto error;