losetup: fix bitwise vs. logical typo [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-10-12 14:45:11 +02:00
parent 9d4f78ef0e
commit e9aa2a14b0
1 changed files with 1 additions and 1 deletions

View File

@ -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);