]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix cgroup directory removal
authorDaniel Lezcano <daniel.lezcano@free.fr>
Mon, 10 Jan 2011 16:58:32 +0000 (17:58 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 10 Jan 2011 16:58:32 +0000 (17:58 +0100)
Fix the name of the directory to remove.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/cgroup.c

index 229e26b0f7055789e6681c3c58253e9725e021eb..c1404fe373b62a4fe3eacd1379d3fad3662fd6c0 100644 (file)
@@ -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;
        }