grub: added a patch from upstream to fix an obvious error in open(2).
This commit is contained in:
parent
b0b8600da7
commit
947201a73d
2 changed files with 16 additions and 0 deletions
srcpkgs/grub
15
srcpkgs/grub/patches/open_wronly_device.patch
Normal file
15
srcpkgs/grub/patches/open_wronly_device.patch
Normal 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;
|
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'grub'
|
# Template file for 'grub'
|
||||||
pkgname=grub
|
pkgname=grub
|
||||||
version="2.00~beta4"
|
version="2.00~beta4"
|
||||||
|
revision=1
|
||||||
homepage="http://www.gnu.org/software/grub/"
|
homepage="http://www.gnu.org/software/grub/"
|
||||||
distfiles="http://alpha.gnu.org/gnu/grub/grub-$version.tar.xz"
|
distfiles="http://alpha.gnu.org/gnu/grub/grub-$version.tar.xz"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
|
Loading…
Reference in a new issue