]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup set_config_mount_fstab()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 14:24:25 +0000 (15:24 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 15:49:39 +0000 (16:49 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 47dae65de3bdb2778465d68e98e1d3648f62ff41..8fe8825bc001b42e12f5b46b15d97894fc03fbb4 100644 (file)
@@ -2097,7 +2097,7 @@ static int set_config_mount_fstab(const char *key, const char *value,
 {
        if (lxc_config_value_empty(value)) {
                clr_config_mount_fstab(key, lxc_conf, NULL);
-               return -1;
+               return ret_errno(EINVAL);
        }
 
        return set_config_path_item(&lxc_conf->fstab, value);