summaryrefslogtreecommitdiff
path: root/package/util-linux/patches/patch-libmount_src_utils_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-08-14 13:04:52 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-08-14 13:04:52 +0200
commit1ebda4d177a64d16ecc23e65745fe31001a90af7 (patch)
treec72ca3facd4e8b498e4f2482c9cc311919fb4c12 /package/util-linux/patches/patch-libmount_src_utils_c
parente4e8ca04a55b982e1e8e36bbec832365513904b3 (diff)
update to latest stable upstream, fix uclibc/musl issues
Diffstat (limited to 'package/util-linux/patches/patch-libmount_src_utils_c')
-rw-r--r--package/util-linux/patches/patch-libmount_src_utils_c14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/util-linux/patches/patch-libmount_src_utils_c b/package/util-linux/patches/patch-libmount_src_utils_c
new file mode 100644
index 000000000..b0fcc2afa
--- /dev/null
+++ b/package/util-linux/patches/patch-libmount_src_utils_c
@@ -0,0 +1,14 @@
+--- util-linux-2.23.2.orig/libmount/src/utils.c 2013-07-30 11:15:27.000000000 +0200
++++ util-linux-2.23.2/libmount/src/utils.c 2013-08-14 11:58:25.000000000 +0200
+@@ -842,7 +842,11 @@ int mnt_open_uniq_filename(const char *f
+ */
+ oldmode = umask(S_IRGRP|S_IWGRP|S_IXGRP|
+ S_IROTH|S_IWOTH|S_IXOTH);
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ fd = mkostemp(n, O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC);
++#else
++ fd = mkstemp(n);
++#endif
+ umask(oldmode);
+
+ if (fd >= 0 && name)