summaryrefslogtreecommitdiff
path: root/package/util-linux/patches/patch-lib_fileutils_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/util-linux/patches/patch-lib_fileutils_c')
-rw-r--r--package/util-linux/patches/patch-lib_fileutils_c14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/util-linux/patches/patch-lib_fileutils_c b/package/util-linux/patches/patch-lib_fileutils_c
new file mode 100644
index 000000000..d4edf1c6a
--- /dev/null
+++ b/package/util-linux/patches/patch-lib_fileutils_c
@@ -0,0 +1,14 @@
+--- util-linux-2.23.2.orig/lib/fileutils.c 2013-06-13 09:46:10.000000000 +0200
++++ util-linux-2.23.2/lib/fileutils.c 2013-08-14 11:58:47.000000000 +0200
+@@ -37,7 +37,11 @@ int xmkstemp(char **tmpname, char *dir)
+ xasprintf(&localtmp, "%s/%s.XXXXXX", _PATH_TMP,
+ program_invocation_short_name);
+ old_mode = umask(077);
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ fd = mkostemp(localtmp, O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC);
++#else
++ fd = mkstemp(localtmp);
++#endif
+ umask(old_mode);
+ if (fd == -1) {
+ free(localtmp);