From: Christian Brauner Date: Tue, 8 Dec 2020 16:19:38 +0000 (+0100) Subject: confile: get_config_prlimit() X-Git-Tag: lxc-5.0.0~330^2~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c12267ea0cf97c552270ee8178c0939f88220a0;p=thirdparty%2Flxc.git confile: get_config_prlimit() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index da631f000..883c74448 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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' */