From: Christian Brauner Date: Tue, 8 Dec 2020 16:20:22 +0000 (+0100) Subject: confile: cleanup get_config_proc() X-Git-Tag: lxc-5.0.0~330^2~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab1dbcf1a7545b760344084f2ff781e17c86c8a;p=thirdparty%2Flxc.git confile: cleanup get_config_proc() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 2166d7e7f..077c91751 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -4396,7 +4396,7 @@ static int get_config_proc(const char *key, char *retv, int inlen, else if (strncmp(key, "lxc.proc.", STRLITERALLEN("lxc.proc.")) == 0) key += STRLITERALLEN("lxc.proc."); else - return -1; + return ret_errno(EINVAL); lxc_list_for_each(it, &c->procs) { struct lxc_proc *proc = it->elem;