Commit 8c0c7136 authored by Pavel Emelyanov's avatar Pavel Emelyanov

cg: Check for name= prefix in controller, not cgset

This should be symmetrical with cg dirs creation.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
parent 67a65fe3
......@@ -840,7 +840,7 @@ static int move_in_cgroup(CgSetEntry *se)
aux_off = 0;
for (j = 0; j < ctrl->n_cnames; j++) {
char *name;
if (strstartswith(ce->name, "name="))
if (strstartswith(ctrl->cnames[j], "name="))
name = ctrl->cnames[j] + 5;
else
name = ctrl->cnames[j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment