Skip to content

Commit

Permalink
clean-ipc: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit cd35c15)
  • Loading branch information
dtardon authored and keszybz committed May 8, 2024
1 parent 5909e5c commit 9333db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/clean-ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int clean_sysvipc_shm(uid_t delete_uid, gid_t delete_gid, bool rm) {

r = read_line(f, LONG_LINE_MAX, &line);
if (r < 0)
return log_warning_errno(errno, "Failed to read /proc/sysvipc/shm: %m");
return log_warning_errno(r, "Failed to read /proc/sysvipc/shm: %m");
if (r == 0)
break;

Expand Down

0 comments on commit 9333db0

Please sign in to comment.