mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 01:37:52 +00:00
lxccontainer: load_config_locked()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
49cfedb329
commit
e3246ab9c8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user