mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
on first non-existant partition.
This commit is contained in:
1 parent
d8ce999501
commit
dd94a3df9d
2 files changed
+6
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user