diff options
Diffstat (limited to 'recipes/e2fsprogs/e2fsprogs-1.38')
-rw-r--r-- | recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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 index 0000000000..97679d6ff9 --- /dev/null +++ b/recipes/e2fsprogs/e2fsprogs-1.38/file-open-mode.patch @@ -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; |