summaryrefslogtreecommitdiff
path: root/recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch
blob: 97679d6ff9c0db85eb190f21c2c4ff894f7e9f59 (plain)
1
2
3
4
5
6
7
8
9
10
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;