]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix return code of recursive all of cgroup_tree_prune 4491/head
authorGuido Jäkel <g.jaekel@dnb.de>
Wed, 23 Oct 2024 12:07:53 +0000 (14:07 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Oct 2024 12:07:53 +0000 (14:07 +0200)
Signed-off-by: Guido Jäkel <g.jaekel@dnb.de>
src/lxc/cgroups/cgroup_utils.c

index 3de90fc88cd5e0b05de9f0590bd3fbc7198a0603..0ef7208d2e7d83833cbdbb97427f6c8e34a0adeb 100644 (file)
@@ -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);