From: Christian Brauner Date: Fri, 5 Feb 2021 09:40:56 +0000 (+0100) Subject: attach: use brackets around flag check X-Git-Tag: lxc-5.0.0~299^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9475d2b9b65726d9e4c6ccc038577354d77ffc15;p=thirdparty%2Flxc.git attach: use brackets around flag check Signed-off-by: Christian Brauner --- 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 {