summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/tab_update.c
diff options
context:
space:
mode:
authorKarel Zak2011-02-11 10:18:00 +0100
committerKarel Zak2011-02-11 10:18:00 +0100
commit4b6cf4859a0798eef6f59933101f08f950a0aa9b (patch)
tree8f04a506a1d65b99d0891dc07a0adf750bd9d0e9 /shlibs/mount/src/tab_update.c
parentbuild-sys: don't build lsblk on Linux without openat() (diff)
downloadkernel-qcow2-util-linux-4b6cf4859a0798eef6f59933101f08f950a0aa9b.tar.gz
kernel-qcow2-util-linux-4b6cf4859a0798eef6f59933101f08f950a0aa9b.tar.xz
kernel-qcow2-util-linux-4b6cf4859a0798eef6f59933101f08f950a0aa9b.zip
libmount: replace mkostmps() with more portable mkstemp()
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de> 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c
index a0f99f1fb..6b7b4beff 100644
--- a/shlibs/mount/src/tab_update.c
+++ b/shlibs/mount/src/tab_update.c
@@ -561,7 +561,7 @@ static int update_table(struct libmnt_update *upd, struct libmnt_table *tb)
DBG(UPDATE, mnt_debug_h(upd, "%s: updating", upd->filename));
- fd = mnt_open_uniq_filename(upd->filename, &uq, O_WRONLY);
+ fd = mnt_open_uniq_filename(upd->filename, &uq);
if (fd < 0)
return fd; /* error */