From bce04069bc1523e6ac7d99a8fc7f0747b57e9055 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 17 Feb 2021 22:48:40 +0100 Subject: [PATCH] cgroups: fix error values Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, "/") { /* -- 2.47.2