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:
okuji committed 2005-07-18 22:21:41 +00:00
1 parent 5f3607e09d
commit b28b81b256
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -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
+1 -1
View File
@@ -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.");