mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
mode.
This commit is contained in:
1 parent
56f7aa1e6f
commit
ebbd24f3eb
2 files changed
+6
-1
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user