From a492e2262ac38ca0ebdb1b1b22f24b2e3145c808 Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Thu, 14 Aug 2008 18:20:07 +0000 Subject: libcgroup: Fix cgroup_fill_cgc() We were failing on stat's success. Stupid thing to do really. Fixing that now. Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@154 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.c b/api.c index 280afcd..0edb55b 100644 --- a/api.c +++ b/api.c @@ -766,7 +766,7 @@ static int cgroup_fill_cgc(struct dirent *ctrl_dir, struct cgroup *cgroup, error = stat(path, &stat_buffer); - if (!error) { + if (error) { error = ECGFAIL; goto fill_error; } -- cgit