diff --git a/ChangeLog b/ChangeLog index cadf0c9fe..6b63e0816 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-19 Yoshinori K. Okuji + + * 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 * commands/ls.c (grub_ls_list_disks): Print the filesystem diff --git a/partmap/apple.c b/partmap/apple.c index 31945083b..200d54d67 100644 --- a/partmap/apple.c +++ b/partmap/apple.c @@ -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.");