From 9475d2b9b65726d9e4c6ccc038577354d77ffc15 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 5 Feb 2021 10:40:56 +0100 Subject: [PATCH] attach: use brackets around flag check Signed-off-by: Christian Brauner --- src/lxc/attach.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 0c2641954..433fe4f7f 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -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 { -- 2.47.2