]> git.proxmox.com Git - mirror_lxc.git/commitdiff
confile: cleanup set_config_pty_max()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 13:36:17 +0000 (14:36 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 14:40:48 +0000 (15:40 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index e7f9df3c49e13a33d35f78f3ac610ffed4f30630..412d1045bc49c8a23d46ab9188a23aab5ce7c9f1 100644 (file)
@@ -1266,7 +1266,7 @@ static int set_config_pty_max(const char *key, const char *value,
 
        ret = lxc_safe_uint(value, &max);
        if (ret < 0)
-               return -1;
+               return ret_errno(EINVAL);
 
        lxc_conf->pty_max = max;