aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/000-upstream-mktemp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/patches/000-upstream-mktemp.patch')
-rw-r--r--package/busybox/patches/000-upstream-mktemp.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/patches/000-upstream-mktemp.patch b/package/busybox/patches/000-upstream-mktemp.patch
new file mode 100644
index 0000000000..a7727ca81f
--- /dev/null
+++ b/package/busybox/patches/000-upstream-mktemp.patch
@@ -0,0 +1,11 @@
+--- a/debianutils/mktemp.c
++++ b/debianutils/mktemp.c
+@@ -50,7 +50,7 @@ int mktemp_main(int argc UNUSED_PARAM, c
+ opts = getopt32(argv, "dqtp:", &path);
+
+ chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX");
+- if (chp[0] != '/' || (opts & 8))
++ if (!strchr(chp, '/') || (opts & 8))
+ chp = concat_path_file(path, chp);
+
+ if (opts & 1) { /* -d */