]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 19 Apr 2012 18:35:06 +0000 (20:35 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 19 Apr 2012 18:35:06 +0000 (20:35 +0200)
mode.

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

index 6846f901727c3584526240fe9a65c3973efb04ed..b9dae7f0b3335ead6c6779983ed3441e4ba89977 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
+       mode.
+
 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * configure.ac: Bump to beta4.
index ea7eb3d90cfed2f225bcc28b6fe4ce892708e316..531fc026f99191e812c1dfa3f76ec2b2c8b9383e 100644 (file)
@@ -1081,7 +1081,7 @@ grub_util_biosdisk_write (grub_disk_t disk, grub_disk_addr_t sector,
     {
       int fd;
       grub_disk_addr_t max = ~0ULL;
-      fd = open_device (disk, sector, O_RDONLY, &max);
+      fd = open_device (disk, sector, O_WRONLY, &max);
       if (fd < 0)
        return grub_errno;