From: Long Wang Date: Wed, 12 Jul 2017 07:34:36 +0000 (+0800) Subject: cgfsng: remove the old workdaround code X-Git-Tag: lxc-2.1.0~48^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1696%2Fhead;p=thirdparty%2Flxc.git cgfsng: remove the old workdaround code Signed-off-by: Long Wang --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index df7615c60..1192d575f 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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); }