From: Christian Brauner Date: Wed, 17 Feb 2021 15:24:50 +0000 (+0100) Subject: conf: use brackets to clarify check semantics X-Git-Tag: lxc-5.0.0~280^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9394b6dc976985f377160b5cec67def96a1642fd;p=thirdparty%2Flxc.git conf: use brackets to clarify check semantics Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 78f3f01b3..f2a3b62af 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -687,7 +687,7 @@ static int lxc_mount_auto_mounts(struct lxc_handler *handler, int flags) * CAP_SYS_ADMIN, do only default to :mixed, because then the * container can't remount it read-write. */ - if (cg_flags == LXC_AUTO_CGROUP_NOSPEC || cg_flags == LXC_AUTO_CGROUP_FULL_NOSPEC) { + if ((cg_flags == LXC_AUTO_CGROUP_NOSPEC) || (cg_flags == LXC_AUTO_CGROUP_FULL_NOSPEC)) { int has_sys_admin = 0; if (!lxc_list_empty(&conf->keepcaps))