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

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

No files matched your search

+5
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> 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Bump to beta4. * configure.ac: Bump to beta4.
+1 -1
View File
@@ -1081,7 +1081,7 @@ grub_util_biosdisk_write (grub_disk_t disk, grub_disk_addr_t sector,
{ {
int fd; int fd;
grub_disk_addr_t max = ~0ULL; 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) if (fd < 0)
return grub_errno; return grub_errno;