From 4b6cf4859a0798eef6f59933101f08f950a0aa9b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 11 Feb 2011 10:18:00 +0100 Subject: libmount: replace mkostmps() with more portable mkstemp() Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak --- shlibs/mount/src/tab_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shlibs/mount/src/tab_update.c') 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 */ -- cgit v1.2.3-55-g7522