]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Fix a bug in lscgroup which prevent it from reading cgroups from
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Thu, 17 Jun 2010 14:04:21 +0000 (19:34 +0530)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Thu, 17 Jun 2010 14:04:21 +0000 (19:34 +0530)
output.

Signed-off-by: Ivana Hutarova Varekova<varekova@redhat.com>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
src/tools/lscgroup.c

index 330a0e20679293603fc159aa4e162f969aa56cbd..82e0117f50f922713b564ccb9a05b16b4af122ee 100644 (file)
@@ -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"