]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup get_config_proc()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:20:22 +0000 (17:20 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:20:22 +0000 (17:20 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 2166d7e7fc7be7eee2b4448491196f9b3fb36698..077c91751cacdaa29d97af9476875df02d217278 100644 (file)
@@ -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;