From 2f29c419b01c104475f04d58a873b181273cfd8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Pavl=C3=ADn?= Date: Fri, 21 Sep 2012 12:04:02 +0200 Subject: [PATCH 1/1] cgtop: missing '-' Return codes in systemd are negated and if (r < 0) if (r == ENOENT) was never true. --- src/cgtop/cgtop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 3756328fa..9eb2d2fde 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -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; -- 2.30.2