]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: remove the old workdaround code 1696/head
authorLong Wang <w@laoqinren.net>
Wed, 12 Jul 2017 07:34:36 +0000 (15:34 +0800)
committerLong Wang <w@laoqinren.net>
Wed, 12 Jul 2017 07:34:36 +0000 (15:34 +0800)
Signed-off-by: Long Wang <w@laoqinren.net>
src/lxc/cgroups/cgfsng.c

index df7615c60a807a23807c3d1b7ec58eaae6568fcf..1192d575f72c16dcaa2391c56ae4edfbcc548d93 100644 (file)
@@ -1821,13 +1821,6 @@ static char *build_full_cgpath_from_monitorpath(struct hierarchy *h,
                                                const char *inpath,
                                                const char *filename)
 {
-       /*
-        * XXX Remove this case after 2.0 release.  It's for dealing with
-        * containers spawned under the old buggy cgfsng which wasn't around
-        * for long.
-        */
-       if (strncmp(inpath, "/sys/fs/cgroup/", 15) == 0)
-               return must_make_path(inpath, filename, NULL);
        return must_make_path(h->mountpoint, inpath, filename, NULL);
 }