Unverified Commit 86fec54b by Christian Brauner Committed by Stéphane Graber

confile: config_init_gid()

parent 11a7571a
...@@ -1091,13 +1091,17 @@ static int config_init_uid(const char *key, const char *value, ...@@ -1091,13 +1091,17 @@ static int config_init_uid(const char *key, const char *value,
} }
static int config_init_gid(const char *key, const char *value, static int config_init_gid(const char *key, const char *value,
struct lxc_conf *lxc_conf) struct lxc_conf *lxc_conf)
{ {
unsigned int init_gid; unsigned int init_gid;
if (config_value_empty(value)) /* Set config value to default. */
if (config_value_empty(value)) {
lxc_conf->init_gid = 0;
return 0; return 0;
}
/* Parse new config value. */
if (lxc_safe_uint(value, &init_gid) < 0) if (lxc_safe_uint(value, &init_gid) < 0)
return -1; return -1;
lxc_conf->init_gid = init_gid; lxc_conf->init_gid = init_gid;
......
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