Commit bac806d1 by Serge Hallyn

lxc_container_new: fail on config file parse error

If we have a bad config file entry, fail. Otherwise lxc-start will proceed with a partial configuration. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 934b1673
...@@ -3232,8 +3232,8 @@ struct lxc_container *lxc_container_new(const char *name, const char *configpath ...@@ -3232,8 +3232,8 @@ struct lxc_container *lxc_container_new(const char *name, const char *configpath
goto err; goto err;
} }
if (file_exists(c->configfile)) if (file_exists(c->configfile) && !lxcapi_load_config(c, NULL))
lxcapi_load_config(c, NULL); goto err;
if (ongoing_create(c) == 2) { if (ongoing_create(c) == 2) {
ERROR("Error: %s creation was not completed", c->name); ERROR("Error: %s creation was not completed", c->name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment