From: Christian Brauner Date: Wed, 17 Feb 2021 21:48:40 +0000 (+0100) Subject: cgroups: fix error values X-Git-Tag: lxc-5.0.0~278^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce04069bc1523e6ac7d99a8fc7f0747b57e9055;p=thirdparty%2Flxc.git cgroups: fix error values Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index bf8d4d67a..d1db8f0fb 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1050,11 +1050,11 @@ static int __cgroup_tree_create(int dfd_base, const char *path, mode_t mode, char buf[PATH_MAX]; if (is_empty_string(path)) - return ret_errno(-EINVAL); + return ret_errno(EINVAL); len = strlcpy(buf, path, sizeof(buf)); if (len >= sizeof(buf)) - return -E2BIG; + return ret_errno(E2BIG); lxc_iterate_parts(cur, buf, "/") { /*