diff --git a/src/helpers/partutil.c b/src/helpers/partutil.c index 72a8fe3..4ff2076 100644 --- a/src/helpers/partutil.c +++ b/src/helpers/partutil.c @@ -501,16 +501,18 @@ part_table_parse_msdos_extended (int fd, PartitionEntry *pe; guint64 pstart; guint64 psize; + guint8 ptype; pstart = block_size * ((guint64) get_le32 (&(embr[MSDOS_PARTTABLE_OFFSET + n * 16 + 8]))); psize = block_size * ((guint64) get_le32 (&(embr[MSDOS_PARTTABLE_OFFSET + n * 16 + 12]))); + ptype = embr[MSDOS_PARTTABLE_OFFSET + n * 16 + 4]; if (psize == 0) continue; pe = NULL; - if (n == 0) + if (n == 0 && 5 != ptype) // || 15 == ptype { //DEBUG ("part %d (offset %lld, size %lld, type 0x%02x)", // n, readfrom + pstart, psize, ptype));