losetup: fix bitwise vs. logical typo [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
9d4f78ef0e
commit
e9aa2a14b0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue