]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: use brackets to clarify check semantics
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 15:24:50 +0000 (16:24 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 15:30:15 +0000 (16:30 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 78f3f01b38a72fe041e5dd423ac13a147c62ef5e..f2a3b62af0e3e13e5d494f6df82e80d4f0ef1d18 100644 (file)
@@ -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))