Skip to content

Commit

Permalink
xz: Fix Capsicum sandbox compile error.
Browse files Browse the repository at this point in the history
user_abort_pipe[] was still being used instead of the parameters.
  • Loading branch information
JiaT75 committed Feb 23, 2024
1 parent 32b0a3c commit eea7821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xz/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit eea7821

Please sign in to comment.