* grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
Fix off by one error in enumerating extended partitions.
This commit is contained in:
parent
21aecde5f6
commit
df6da5a52d
2 changed files with 6 additions and 1 deletions
|
@ -196,7 +196,7 @@ grub_partition_msdos_iterate (grub_disk_t disk,
|
|||
if (hook (disk, &p, hook_data))
|
||||
return grub_errno;
|
||||
}
|
||||
else if (p.number < 4)
|
||||
else if (p.number < 3)
|
||||
/* If this partition is a logical one, shouldn't increase the
|
||||
partition number. */
|
||||
p.number++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue