ocfs2-tools/ocfs2-tools-o_creat-mode.diff

12 lines
404 B
Diff

--- a/libocfs2/ismounted.c 2007-11-14 18:54:19.000000000 -0500
+++ b/libocfs2/ismounted.c 2008-01-14 10:29:14.000000000 -0500
@@ -153,7 +153,7 @@
is_root:
#define TEST_FILE "/.ismount-test-file"
*mount_flags |= OCFS2_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 |= OCFS2_MF_READONLY;