mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
e2fsprogs: fix build on Ubuntu 9.04
This commit is contained in:
parent
4b13072f18
commit
402a5b2ab8
|
@ -4,7 +4,8 @@ LICENSE = "GPL"
|
|||
SECTION = "base"
|
||||
DEPENDS = "gettext"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-${PV}.tar.gz"
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-${PV}.tar.gz \
|
||||
file://ubuntu904.patch;patch=1"
|
||||
|
||||
inherit autotools
|
||||
|
||||
|
|
13
meta/packages/e2fsprogs/e2fsprogs/ubuntu904.patch
Normal file
13
meta/packages/e2fsprogs/e2fsprogs/ubuntu904.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: e2fsprogs-1.38/lib/ext2fs/ismounted.c
|
||||
===================================================================
|
||||
--- e2fsprogs-1.38.orig/lib/ext2fs/ismounted.c 2009-07-28 13:48:34.000000000 +0200
|
||||
+++ e2fsprogs-1.38/lib/ext2fs/ismounted.c 2009-07-28 13:49:10.000000000 +0200
|
||||
@@ -147,7 +147,7 @@
|
||||
is_root:
|
||||
#define TEST_FILE "/.ismount-test-file"
|
||||
*mount_flags |= EXT2_MF_ISROOT;
|
||||
- fd = open(TEST_FILE, O_RDWR|O_CREAT);
|
||||
+ fd = open(TEST_FILE, O_RDWR|O_CREAT, 0600);
|
||||
if (fd < 0) {
|
||||
if (errno == EROFS)
|
||||
*mount_flags |= EXT2_MF_READONLY;
|
Loading…
Reference in New Issue
Block a user