confile: config_personality()

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

View File

@ -1241,6 +1241,9 @@ static int config_personality(const char *key, const char *value,
static int config_pts(const char *key, const char *value,
struct lxc_conf *lxc_conf)
{
if (config_value_empty(value))
return 0;
if (lxc_safe_uint(value, &lxc_conf->pts) < 0)
return -1;