attach: use brackets around flag check

parent f5072dcd
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment