From 1ebda4d177a64d16ecc23e65745fe31001a90af7 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 14 Aug 2013 13:04:52 +0200 Subject: update to latest stable upstream, fix uclibc/musl issues --- package/util-linux/patches/patch-lib_fileutils_c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/util-linux/patches/patch-lib_fileutils_c (limited to 'package/util-linux/patches/patch-lib_fileutils_c') 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); -- cgit v1.2.3