From: Guido Jäkel Date: Wed, 23 Oct 2024 12:07:53 +0000 (+0200) Subject: fix return code of recursive all of cgroup_tree_prune X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7c75853771b81500ca995eb497a6f0cb067a494;p=thirdparty%2Flxc.git fix return code of recursive all of cgroup_tree_prune Signed-off-by: Guido Jäkel --- diff --git a/src/lxc/cgroups/cgroup_utils.c b/src/lxc/cgroups/cgroup_utils.c index 3de90fc88..0ef7208d2 100644 --- a/src/lxc/cgroups/cgroup_utils.c +++ b/src/lxc/cgroups/cgroup_utils.c @@ -83,7 +83,7 @@ int cgroup_tree_prune(int dfd, const char *path) ret = cgroup_tree_prune(dfd_dup, direntp->d_name); if (ret < 0) - return -errno; + return ret; } ret = unlinkat(dfd, path, AT_REMOVEDIR);