* grub-core/partmap/msdos.c (grub_partition_msdos_iterate):

Fix off by one error in enumerating extended partitions.
This commit is contained in:
Andrey Borzenkov 2013-02-27 10:02:39 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent 21aecde5f6
commit df6da5a52d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
Fix off by one error in enumerating extended partitions.
2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix

View File

@ -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++;