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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user