mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-20 05:28:17 +07:00
cgtop: missing '-'
Return codes in systemd are negated and if (r < 0) if (r == ENOENT) was never true.
This commit is contained in:
parent
e57d4fa35e
commit
2f29c419b0
@ -300,7 +300,7 @@ static int refresh_one(
|
||||
|
||||
r = cg_enumerate_subgroups(controller, path, &d);
|
||||
if (r < 0) {
|
||||
if (r == ENOENT)
|
||||
if (r == -ENOENT)
|
||||
return 0;
|
||||
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user