grub: added a patch from upstream to fix an obvious error in open(2).

This commit is contained in:
Juan RP 2012-04-24 09:32:51 +02:00
parent b0b8600da7
commit 947201a73d
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
mode.
2012-04-18 Vladimir Serbinenko <address@hidden>
--- 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;

View File

@ -1,6 +1,7 @@
# Template file for 'grub'
pkgname=grub
version="2.00~beta4"
revision=1
homepage="http://www.gnu.org/software/grub/"
distfiles="http://alpha.gnu.org/gnu/grub/grub-$version.tar.xz"
build_style=gnu-configure