From: Christian Brauner Date: Wed, 9 Dec 2020 08:32:07 +0000 (+0100) Subject: confile: lxc_list_subkeys() X-Git-Tag: lxc-5.0.0~330^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efcba3c342de124fbb20a7f504ac27b4f1ca95e6;p=thirdparty%2Flxc.git confile: lxc_list_subkeys() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 2f55e6278..5cae5839b 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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;