From 6502006a44d27a27fe1e2d9d8cac721c0ec8907a Mon Sep 17 00:00:00 2001 From: Dwight Engen Date: Mon, 4 Nov 2013 17:35:15 -0500 Subject: [PATCH] allow lxcapi_get_cgroup_item() on lxc-execute containers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/lxc/lxccontainer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))