From: Dwight Engen Date: Mon, 4 Nov 2013 22:35:15 +0000 (-0500) Subject: allow lxcapi_get_cgroup_item() on lxc-execute containers X-Git-Tag: lxc-1.0.0.alpha3~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6502006a44d27a27fe1e2d9d8cac721c0ec8907a;p=thirdparty%2Flxc.git allow lxcapi_get_cgroup_item() on lxc-execute containers Containers started with lxc-execute may not have a conf, but nothing in the implementation of lxcapi_get_cgroup_item() actually needs/uses it, and it can be useful to get items out of the containers' cgroup items. Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index ef828dca2..89b45ede8 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -1977,7 +1977,7 @@ static int lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys, c { int ret; - if (!c || !c->lxc_conf) + if (!c) return -1; if (is_stopped(c))