]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_pts()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 May 2017 02:30:29 +0000 (04:30 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 May 2017 16:43:04 +0000 (18:43 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index f5687180fcf7ee030f44053aa710454a91135523..b9a457209283b5b22f70fa4be71fe695c947c02f 100644 (file)
@@ -1249,9 +1249,13 @@ 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))
+       /* Set config value to default. */
+       if (config_value_empty(value)) {
+               lxc_conf->pts = 0;
                return 0;
+       }
 
+       /* Parse new config value. */
        if (lxc_safe_uint(value, &lxc_conf->pts) < 0)
                return -1;