mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
clean-ipc: pass the right error variable
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user