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

index da631f0009d1e1febc515f6219ece1b519dabc66..883c744484e3de39da014946545b40f756234175 100644 (file)
@@ -4305,7 +4305,7 @@ static int get_config_prlimit(const char *key, char *retv, int inlen,
        else if (strncmp(key, "lxc.prlimit.", 12) == 0)
                key += 12;
        else
-               return -1;
+               return ret_errno(EINVAL);
 
        lxc_list_for_each(it, &c->limits) {
                /* 2 colon separated 64 bit integers or the word 'unlimited' */