]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup set_config_hooks()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 15 Dec 2020 10:54:34 +0000 (11:54 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 15 Dec 2020 10:54:34 +0000 (11:54 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index a5cb64e5061c3503cf0f7754e457f736523fea9f..b52bd11b44d8beccc9f26056aed3e674c47e1b2f 100644 (file)
@@ -1214,7 +1214,7 @@ static int set_config_hooks(const char *key, const char *value,
        else if (strcmp(key + 9, "destroy") == 0)
                return add_hook(lxc_conf, LXCHOOK_DESTROY, move_ptr(copy));
 
-       return -1;
+       return ret_errno(EINVAL);
 }
 
 static int set_config_hooks_version(const char *key, const char *value,