From: Balbir Singh Date: Thu, 17 Jun 2010 14:04:21 +0000 (+0530) Subject: Fix a bug in lscgroup which prevent it from reading cgroups from X-Git-Tag: v0.36.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b61267e5f940734f71c6f68c1b9a38edd7ca273;p=thirdparty%2Flibcgroup.git Fix a bug in lscgroup which prevent it from reading cgroups from output. Signed-off-by: Ivana Hutarova Varekova Signed-off-by: Balbir Singh --- diff --git a/src/tools/lscgroup.c b/src/tools/lscgroup.c index 330a0e20..82e0117f 100644 --- a/src/tools/lscgroup.c +++ b/src/tools/lscgroup.c @@ -279,7 +279,7 @@ int main(int argc, char *argv[]) /* read the list of controllers */ while (optind < argc) { - ret = parse_cgroup_spec(cgroup_list, optarg, + ret = parse_cgroup_spec(cgroup_list, argv[optind], CG_HIER_MAX); if (ret) { fprintf(stderr, "%s: cgroup controller"