From 429a84f4ab9eb0e5b85b9fe94336c56746279b28 Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Mon, 10 Jan 2011 17:58:32 +0100 Subject: [PATCH] fix cgroup directory removal Fix the name of the directory to remove. Signed-off-by: Daniel Lezcano --- src/lxc/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2