mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03:00
clean-ipc: pass the right error variable
This commit is contained in:
parent
75c64e58d1
commit
cd35c15de3
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user