cgtop: missing '-'
Return codes in systemd are negated and
if (r < 0) if (r == ENOENT)
was never true.
This commit is contained in:
committed by
Lennart Poettering
parent
e57d4fa35e
commit
2f29c419b0
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user