diff options
author | Karel Zak | 2010-11-23 20:39:55 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:46 +0100 |
commit | b0bb8fb6f9c3d54d230b785695a5bceab7e3f320 (patch) | |
tree | 967b3095dab666a892f40271598dd359dfd5fc12 /shlibs/mount/src/tab_update.c | |
parent | tests: improve libmount context mount and umount test (diff) | |
download | kernel-qcow2-util-linux-b0bb8fb6f9c3d54d230b785695a5bceab7e3f320.tar.gz kernel-qcow2-util-linux-b0bb8fb6f9c3d54d230b785695a5bceab7e3f320.tar.xz kernel-qcow2-util-linux-b0bb8fb6f9c3d54d230b785695a5bceab7e3f320.zip |
libmount: fix utab file and dir modes, add new debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/tab_update.c')
-rw-r--r-- | shlibs/mount/src/tab_update.c | 3 |
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) |