]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
get the right path in get_cgroup command 3357/head
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Sun, 5 Apr 2020 14:12:45 +0000 (16:12 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Sun, 5 Apr 2020 14:19:29 +0000 (16:19 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/commands.c

index 5ac3f5d9c93e0aeba08e069542c0f6698e72c974..6309f68e028c858b8b792ab704ab24bf3e4dccad 100644 (file)
@@ -579,8 +579,8 @@ static int lxc_cmd_get_cgroup_callback_do(int fd, struct lxc_cmd_req *req,
                reqdata = NULL;
        }
 
-       get_fn = (limiting_cgroup ? cgroup_ops->get_cgroup
-                                 : cgroup_ops->get_limiting_cgroup);
+       get_fn = (limiting_cgroup ? cgroup_ops->get_limiting_cgroup
+                                 : cgroup_ops->get_cgroup);
 
        path = get_fn(cgroup_ops, reqdata);