* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening

mode.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-04-19 20:35:06 +02:00
parent 56f7aa1e6f
commit ebbd24f3eb
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View 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;