mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
pid: fix ENOENT error check
This commit is contained in:
@@ -824,7 +824,7 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
|
||||
assert(p);
|
||||
|
||||
r = cg_enumerate_processes(SYSTEMD_CGROUP_CONTROLLER, p, &f);
|
||||
if (r == ENOENT)
|
||||
if (r == -ENOENT)
|
||||
return 0;
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user