49c4241563
- Update license tags - Fix one open-create caller with no mode - Protect ->open ops from glibc open-create-mode-checker - Fix source URL - Add gawk to BuildRequires
14 lines
525 B
Diff
14 lines
525 B
Diff
Index: e2fsprogs-1.40.2/lib/ext2fs/ismounted.c
|
|
===================================================================
|
|
--- e2fsprogs-1.40.2.orig/lib/ext2fs/ismounted.c
|
|
+++ e2fsprogs-1.40.2/lib/ext2fs/ismounted.c
|
|
@@ -147,7 +147,7 @@ static errcode_t check_mntent_file(const
|
|
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, 0644);
|
|
if (fd < 0) {
|
|
if (errno == EROFS)
|
|
*mount_flags |= EXT2_MF_READONLY;
|