summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2012-08-07 09:22:46 +0000
committerae <ae@FreeBSD.org>2012-08-07 09:22:46 +0000
commit8a893b0e6815fac4cb8c165a1869b8b01883bcc0 (patch)
tree96b27a354447f06ff2758c66c4b7f419fe6f3ae4 /sys/boot/common
parent88f48c87a5e20d17482ab388c86306821e5d66f0 (diff)
downloadFreeBSD-src-8a893b0e6815fac4cb8c165a1869b8b01883bcc0.zip
FreeBSD-src-8a893b0e6815fac4cb8c165a1869b8b01883bcc0.tar.gz
As it turned out, there are some installations, where BSD label
contains partitions with type zero. And it has worked. So, allow detect these partitions. Reported by: glebius
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c
index 6614573..ac1596d 100644
--- a/sys/boot/common/part.c
+++ b/sys/boot/common/part.c
@@ -466,7 +466,7 @@ ptable_bsdread(struct ptable *table, void *dev, diskread_t dread)
for (i = 0; i < dl->d_npartitions; i++, part++) {
if (i == RAW_PART)
continue;
- if (part->p_size == 0 || part->p_fstype == 0)
+ if (part->p_size == 0)
continue;
entry = malloc(sizeof(*entry));
if (entry == NULL)
OpenPOWER on IntegriCloud