summaryrefslogtreecommitdiff
path: root/libre-testing/grub/grub-install.fix
diff options
context:
space:
mode:
Diffstat (limited to 'libre-testing/grub/grub-install.fix')
-rw-r--r--libre-testing/grub/grub-install.fix11
1 files changed, 11 insertions, 0 deletions
diff --git a/libre-testing/grub/grub-install.fix b/libre-testing/grub/grub-install.fix
new file mode 100644
index 000000000..29e74bd44
--- /dev/null
+++ b/libre-testing/grub/grub-install.fix
@@ -0,0 +1,11 @@
+=== modified file 'grub-core/kern/emu/hostdisk.c'
+--- grub-core/kern/emu/hostdisk.c 2012-04-18 21:48:52 +0000
++++ grub-core/kern/emu/hostdisk.c 2012-04-19 18:35:06 +0000
+@@ -1081,7 +1081,7 @@
+ {
+ 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;