2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 18:43:33 +00:00

lxccontainer: load_config_locked()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2018-02-24 15:19:59 +01:00
parent 49cfedb329
commit e3246ab9c8

View File

@@ -583,10 +583,13 @@ static bool load_config_locked(struct lxc_container *c, const char *fname)
{
if (!c->lxc_conf)
c->lxc_conf = lxc_conf_init();
if (!c->lxc_conf)
return false;
if (lxc_config_read(fname, c->lxc_conf, false) != 0)
return false;
return true;
}