Found by clang.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
type = mnt_fs_get_fstype(cxt->fs);
fl = __mnt_fs_get_flags(cxt->fs);
- if (!(fl && (MNT_FS_PSEUDO | MNT_FS_NET | MNT_FS_SWAP)) &&
+ if (!(fl & (MNT_FS_PSEUDO | MNT_FS_NET | MNT_FS_SWAP)) &&
(!type || strcmp(type, "auto") == 0 || blkid_known_fstype(type))) {
struct stat st;
goto done;
}
- if (!rc && cxt->user_mountflags && MNT_MS_USER)
+ if (!rc && cxt->user_mountflags & MNT_MS_USER)
rc = mnt_optstr_fix_user(&fs->user_optstr);
/* refresh merged optstr */