]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Mon, 18 Jul 2005 22:21:41 +0000 (22:21 +0000)
committerokuji <okuji@localhost>
Mon, 18 Jul 2005 22:21:41 +0000 (22:21 +0000)
* partmap/apple.c (apple_partition_map_iterate): Check if POS
equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
valid.

ChangeLog
partmap/apple.c

index cadf0c9fe00a7220b45feac6819a4029f45bf6a8..6b63e08162ee12d5f090b63b4892c0584cd12e0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 31945083bb10426d8765a32aacb62d563df570e6..200d54d679206bd2e31737ba12344fbdf72e62a3 100644 (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.");