* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close

on failed seek as it breaks open fd reusage.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-03 15:45:20 +02:00
parent 09ceb9a592
commit 829ea451a4
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
on failed seek as it breaks open fd reusage.
2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-install.in: Add a recommendation to use --recheck before

View file

@ -876,7 +876,6 @@ grub_util_biosdisk_read (grub_disk_t disk, grub_disk_addr_t sector,
if (nread (fd, buf, GRUB_DISK_SECTOR_SIZE) != GRUB_DISK_SECTOR_SIZE)
{
grub_error (GRUB_ERR_READ_ERROR, "cannot read `%s'", map[disk->id].device);
close (fd);
return grub_errno;
}