From f7c75853771b81500ca995eb497a6f0cb067a494 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20J=C3=A4kel?= Date: Wed, 23 Oct 2024 14:07:53 +0200 Subject: [PATCH] fix return code of recursive all of cgroup_tree_prune MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Guido Jäkel --- src/lxc/cgroups/cgroup_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2