]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: use brackets around flag check
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Feb 2021 09:40:56 +0000 (10:40 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Feb 2021 11:14:02 +0000 (12:14 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 0c26419548a8427a95607044c7a3eaaa6e584bd9..433fe4f7fa1cb8cb5dc28827c5921d89b9c89cc8 100644 (file)
@@ -1204,7 +1204,8 @@ __noreturn static void do_attach(struct attach_payload *ap)
                        goto on_error;
        }
 
-       if (options->attach_flags & LXC_ATTACH_SETGROUPS && options->groups.size > 0) {
+       if ((options->attach_flags & LXC_ATTACH_SETGROUPS) &&
+           options->groups.size > 0) {
                if (!lxc_setgroups(options->groups.list, options->groups.size))
                        goto on_error;
        } else {