]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: (gpt) fix force flag
authorKarel Zak <kzak@redhat.com>
Wed, 15 Feb 2017 10:30:58 +0000 (11:30 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Feb 2017 10:30:58 +0000 (11:30 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/gpt.c

index 1f75e592c071116dcad42d2a65aac17caf779871..b7d050653a9245e7af9cbd571481c761b0be5475 100644 (file)
@@ -166,7 +166,7 @@ static int is_pmbr_valid(blkid_probe pr, int *has)
 
        if (has)
                *has = 0;
-       if (flags & BLKID_PARTS_FORCE_GPT)
+       else if (flags & BLKID_PARTS_FORCE_GPT)
                return 1;                       /* skip PMBR check */
 
        data = blkid_probe_get_sector(pr, 0);