confile: config_init_gid()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-05-29 14:52:07 +02:00
parent fee8091180
commit a757cc7d2f
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1175,6 +1175,9 @@ static int config_init_gid(const char *key, const char *value,
{
unsigned int init_gid;
if (config_value_empty(value))
return 0;
if (lxc_safe_uint(value, &init_gid) < 0)
return -1;
lxc_conf->init_gid = init_gid;