]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 9 May 2011 16:59:35 +0000 (18:59 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 9 May 2011 16:59:35 +0000 (18:59 +0200)
on first non-existant partition.

ChangeLog
grub-core/kern/emu/hostdisk.c

index 6da178a9fba05e47df01acb507885b98355abde6..5136a915e5156d3d46d738fac5ab882d93342203 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
+       on first non-existant partition.
+
 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
index 92882838fb7e99f2176f35f039062b20f6de39c5..feb2a8ff534473843b88e70c36d0dc8fa850d8c5 100644 (file)
@@ -596,7 +596,7 @@ linux_find_partition (char *dev, grub_disk_addr_t sector)
 
       fd = open (real_dev, O_RDONLY);
       if (fd == -1)
-       return 0;
+       continue;
       close (fd);
 
       start = find_partition_start (real_dev);