diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-08-14 13:04:52 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-08-14 13:04:52 +0200 |
commit | 1ebda4d177a64d16ecc23e65745fe31001a90af7 (patch) | |
tree | c72ca3facd4e8b498e4f2482c9cc311919fb4c12 /package/util-linux/patches/patch-lib_fileutils_c | |
parent | e4e8ca04a55b982e1e8e36bbec832365513904b3 (diff) |
update to latest stable upstream, fix uclibc/musl issues
Diffstat (limited to 'package/util-linux/patches/patch-lib_fileutils_c')
-rw-r--r-- | package/util-linux/patches/patch-lib_fileutils_c | 14 |
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); |