e2fsprogs: fix build on Ubuntu 9.04

This commit is contained in:
Marcin Juszkiewicz 2009-07-31 11:27:43 +02:00
parent 4b13072f18
commit 402a5b2ab8
2 changed files with 15 additions and 1 deletions

View File

@ -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

View 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;