e2fsprogs: fix compile to use 3 args so it works.
authorCarsten Haitzler <raster@openmoko.org>
Tue, 14 Apr 2009 10:18:10 +0000 (20:18 +1000)
committerCarsten Haitzler <raster@openmoko.org>
Tue, 14 Apr 2009 13:25:14 +0000 (23:25 +1000)
recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch [new file with mode: 0644]
recipes/e2fsprogs/e2fsprogs-native_1.38.bb
recipes/e2fsprogs/e2fsprogs_1.38.bb

diff --git a/recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch b/recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch
new file mode 100644 (file)
index 0000000..97679d6
--- /dev/null
@@ -0,0 +1,11 @@
+--- e2fsprogs-1.38/lib/ext2fs/ismounted.c~     2005-06-06 06:05:22.000000000 +1000
++++ e2fsprogs-1.38/lib/ext2fs/ismounted.c      2009-04-03 15:07:35.000000000 +1100
+@@ -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, S_IRUSR|S_IWUSR);
+               if (fd < 0) {
+                       if (errno == EROFS)
+                               *mount_flags |= EXT2_MF_READONLY;
index 388c519..af49b0d 100644 (file)
@@ -2,11 +2,12 @@ SECTION = "base"
 require e2fsprogs.inc
 inherit native
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI += "file://no-hardlinks.patch;patch=1 \
            file://mkinstalldirs.patch;patch=1 \
-          "
+            file://file-open-mode.patch;patch=1 \
+            "
 
 EXTRA_OECONF = ""
 
index 5687556..8ec469a 100644 (file)
@@ -1,10 +1,11 @@
 require e2fsprogs.inc
 
-PR = "r19"
+PR = "r20"
 
 SRC_URI += "file://no-hardlinks.patch;patch=1 \
            file://mkinstalldirs.patch;patch=1 \
-          "
+            file://file-open-mode.patch;patch=1 \
+           "
 
 TARGET_CC_ARCH += "${LDFLAGS}"