mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
b7e39c683a
commit
06f2b92916
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue