]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 3 Apr 2011 13:45:20 +0000 (15:45 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 3 Apr 2011 13:45:20 +0000 (15:45 +0200)
on failed seek as it breaks open fd reusage.

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

index 54a6d6333bc6abed2c3bde4d04c55f6bf651eef3..88a8a7f691820cb0fcc023765b505bc73be664c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index d5b0439fb75240bac52f8c5c84c8c36740e1b553..50e5a34add7cc85122178c44ff23030a47123e83 100644 (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;
        }