summaryrefslogtreecommitdiff
path: root/package/util-linux/patches/patch-libmount_src_utils_c
blob: b0fcc2afad8ee1b8f9c6dc0a0a5234174d6e300d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)