]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: use brackets to have clear semantics for flags checking
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 10 Feb 2021 19:14:38 +0000 (20:14 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 10 Feb 2021 19:20:33 +0000 (20:20 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index d9f4db91716336184152a2b4c19bbc3cd7b0dc75..3e92692b5a29497214cda38a2f86ed99765da1a8 100644 (file)
@@ -1528,7 +1528,8 @@ __cgfsng_ops static bool cgfsng_payload_enter(struct cgroup_ops *ops,
                struct hierarchy *h = ops->hierarchies[i];
                int ret;
 
-               if (is_unified_hierarchy(h) && handler->clone_flags & CLONE_INTO_CGROUP)
+               if (is_unified_hierarchy(h) &&
+                   (handler->clone_flags & CLONE_INTO_CGROUP))
                        continue;
 
                ret = lxc_writeat(h->cgfd_con, "cgroup.procs", pidstr, len);