From e9aa2a14b034dd87d257b45c4dc0f9566b2e7b8b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 12 Oct 2017 14:45:11 +0200 Subject: [PATCH] losetup: fix bitwise vs. logical typo [coverity scan] Signed-off-by: Karel Zak --- sys-utils/losetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index da0fbc905..9c479c02d 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -495,7 +495,7 @@ static int create_loop(struct loopdev_cxt *lc, errx(EXIT_FAILURE, _("%s: overlapping encrypted loop device exists"), file); } - lc->info.lo_flags &= !LO_FLAGS_AUTOCLEAR; + lc->info.lo_flags &= ~LO_FLAGS_AUTOCLEAR; if (loopcxt_set_status(lc)) { loopcxt_deinit(lc); errx(EXIT_FAILURE, _("%s: failed to re-use loop device"), file);