* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
Return 0 if disk isn't biosdisk.
This commit is contained in:
parent
20fd15f9db
commit
6991503094
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
|
||||
Return 0 if disk isn't biosdisk.
|
||||
|
||||
2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
|
||||
|
||||
* Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
|
||||
|
|
|
@ -1841,6 +1841,9 @@ grub_util_biosdisk_is_floppy (grub_disk_t disk)
|
|||
struct stat st;
|
||||
int fd;
|
||||
|
||||
if (disk->dev != &grub_util_biosdisk_dev)
|
||||
return 0;
|
||||
|
||||
fd = open (map[disk->id].device, O_RDONLY);
|
||||
/* Shouldn't happen. */
|
||||
if (fd == -1)
|
||||
|
|
Loading…
Reference in a new issue