From: Karel Zak Date: Mon, 3 Oct 2022 09:05:39 +0000 (+0200) Subject: libblkid: (xfs) fix typo in operators [coverity scan] X-Git-Tag: v2.39-rc1~499 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be14f251f16b0c8cdc7e69f02d5a6f98c5820d8d;p=thirdparty%2Futil-linux.git libblkid: (xfs) fix typo in operators [coverity scan] Addresses: https://github.com/util-linux/util-linux/pull/1804 Signed-off-by: Karel Zak --- diff --git a/libblkid/src/superblocks/xfs.c b/libblkid/src/superblocks/xfs.c index b26b960d27..4f80c5c968 100644 --- a/libblkid/src/superblocks/xfs.c +++ b/libblkid/src/superblocks/xfs.c @@ -208,9 +208,9 @@ static int xfs_verify_sb(struct xfs_super_block *ondisk, blkid_probe pr, uint32_t expected, crc; unsigned char *csummed; - if (!(sbp->sb_versionnum | XFS_SB_VERSION_MOREBITSBIT)) + if (!(sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT)) return 0; - if (!(sbp->sb_features2 | XFS_SB_VERSION2_CRCBIT)) + if (!(sbp->sb_features2 & XFS_SB_VERSION2_CRCBIT)) return 0; expected = sbp->sb_crc;