From be14f251f16b0c8cdc7e69f02d5a6f98c5820d8d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 3 Oct 2022 11:05:39 +0200 Subject: [PATCH] libblkid: (xfs) fix typo in operators [coverity scan] Addresses: https://github.com/util-linux/util-linux/pull/1804 Signed-off-by: Karel Zak --- libblkid/src/superblocks/xfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3