]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: lxc_list_subkeys()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 08:32:07 +0000 (09:32 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 14:01:48 +0000 (15:01 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 2f55e6278bd16d48057263d20b510be36627093e..5cae5839be718373b82bba0fbd0e799565af7723 100644 (file)
@@ -6260,7 +6260,7 @@ int lxc_list_subkeys(struct lxc_conf *conf, const char *key, char *retv,
        } else if (!strcmp(key, "lxc.keyring")) {
                strprint(retv, inlen, "session\n");
        } else {
-               fulllen = -1;
+               fulllen = ret_errno(EINVAL);
        }
 
        return fulllen;