Skip to content

Commit

Permalink
test-bpf-restrict-fs: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 2dd1676)
  • Loading branch information
dtardon authored and keszybz committed May 8, 2024
1 parent 3cb58c6 commit ab2579e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/test-bpf-lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static int test_restrict_filesystems(Manager *m, const char *unit_name, const ch
while (!IN_SET(SERVICE(u)->state, SERVICE_DEAD, SERVICE_FAILED)) {
r = sd_event_run(m->event, UINT64_MAX);
if (r < 0)
return log_error_errno(errno, "Event run failed %m");
return log_error_errno(r, "Event run failed %m");
}

cld_code = SERVICE(u)->exec_command[SERVICE_EXEC_START]->exec_status.code;
Expand Down

0 comments on commit ab2579e

Please sign in to comment.