summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/tab_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'shlibs/mount/src/tab_update.c')
-rw-r--r--shlibs/mount/src/tab_update.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c
index 4b4f0addd..f9d4e5f06 100644
--- a/shlibs/mount/src/tab_update.c
+++ b/shlibs/mount/src/tab_update.c
@@ -458,7 +458,8 @@ static int utab_lock(const char *filename)
DBG(UPDATE, mnt_debug("%s: locking", lfile));
- fd = open(lfile, O_RDONLY|O_CREAT|O_CLOEXEC, S_IRUSR|S_IWUSR);
+ fd = open(lfile, O_RDONLY|O_CREAT|O_CLOEXEC, S_IWUSR|
+ S_IRUSR|S_IRGRP|S_IROTH);
free(lfile);
if (fd < 0)