diff --git a/ChangeLog b/ChangeLog index 6846f9017..b9dae7f0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-04-18 Vladimir Serbinenko + + * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening + mode. + 2012-04-18 Vladimir Serbinenko * configure.ac: Bump to beta4. diff --git a/grub-core/kern/emu/hostdisk.c b/grub-core/kern/emu/hostdisk.c index ea7eb3d90..531fc026f 100644 --- a/grub-core/kern/emu/hostdisk.c +++ b/grub-core/kern/emu/hostdisk.c @@ -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;