diff options
author | Karel Zak | 2011-02-11 10:18:00 +0100 |
---|---|---|
committer | Karel Zak | 2011-02-11 10:18:00 +0100 |
commit | 4b6cf4859a0798eef6f59933101f08f950a0aa9b (patch) | |
tree | 8f04a506a1d65b99d0891dc07a0adf750bd9d0e9 /shlibs/mount/src/utils.c | |
parent | build-sys: don't build lsblk on Linux without openat() (diff) | |
download | kernel-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/utils.c')
-rw-r--r-- | shlibs/mount/src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shlibs/mount/src/utils.c b/shlibs/mount/src/utils.c index cb0ed1cac..b02b6fe4d 100644 --- a/shlibs/mount/src/utils.c +++ b/shlibs/mount/src/utils.c @@ -642,7 +642,7 @@ const char *mnt_get_utab_path(void) /* returns file descriptor or -errno, @name returns uniques filename */ -int mnt_open_uniq_filename(const char *filename, char **name, int flags) +int mnt_open_uniq_filename(const char *filename, char **name) { int rc, fd; char *n; @@ -656,7 +656,7 @@ int mnt_open_uniq_filename(const char *filename, char **name, int flags) if (rc <= 0) return -errno; - fd = mkostemp(n, flags | O_EXCL); + fd = mkstemp(n); if (fd >= 0 && name) *name = n; else |