2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
* partmap/apple.c (apple_partition_map_iterate): Check if POS equals GRUB_DISK_SECTOR_SIZE to see if the partition table is valid.
This commit is contained in:
parent
5f3607e09d
commit
b28b81b256
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* partmap/apple.c (apple_partition_map_iterate): Check if POS
|
||||
equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
|
||||
valid.
|
||||
|
||||
2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* commands/ls.c (grub_ls_list_disks): Print the filesystem
|
||||
|
|
|
@ -144,7 +144,7 @@ apple_partition_map_iterate (grub_disk_t disk,
|
|||
partno++;
|
||||
}
|
||||
|
||||
if ((pos / GRUB_DISK_SECTOR_SIZE) == 0)
|
||||
if (pos == GRUB_DISK_SECTOR_SIZE)
|
||||
return grub_error (GRUB_ERR_BAD_PART_TABLE,
|
||||
"Apple partition map not found.");
|
||||
|
||||
|
|
Loading…
Reference in a new issue