Commit 429a84f4 by Daniel Lezcano Committed by Daniel Lezcano

fix cgroup directory removal

Fix the name of the directory to remove. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 5193cc3d
...@@ -279,7 +279,7 @@ int lxc_cgroup_destroy(const char *name) ...@@ -279,7 +279,7 @@ int lxc_cgroup_destroy(const char *name)
} }
snprintf(cgname, MAXPATHLEN, "%s/%s", cgmnt, name); snprintf(cgname, MAXPATHLEN, "%s/%s", cgmnt, name);
if (rmdir(cgmnt)) { if (rmdir(cgname)) {
SYSERROR("failed to remove cgroup '%s'", cgname); SYSERROR("failed to remove cgroup '%s'", cgname);
return -1; return -1;
} }
......
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