From: Daniel Lezcano Date: Mon, 10 Jan 2011 16:58:32 +0000 (+0100) Subject: fix cgroup directory removal X-Git-Tag: lxc-0.7.4-rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429a84f4ab9eb0e5b85b9fe94336c56746279b28;p=thirdparty%2Flxc.git fix cgroup directory removal Fix the name of the directory to remove. Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index 229e26b0f..c1404fe37 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -279,7 +279,7 @@ int lxc_cgroup_destroy(const char *name) } snprintf(cgname, MAXPATHLEN, "%s/%s", cgmnt, name); - if (rmdir(cgmnt)) { + if (rmdir(cgname)) { SYSERROR("failed to remove cgroup '%s'", cgname); return -1; }