summaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/920-mktemp.patch
diff options
context:
space:
mode:
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-15 09:53:21 +0000
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-15 09:53:21 +0000
commit59736eb773c43dc39b9b6ba410a0b615a7c28993 (patch)
tree508b8e2f890ed4a41dbb4f770997f5ddb8f83d7e /package/busybox/patches/920-mktemp.patch
parentef0f04cf2591d7c9ca2cc2d3ba1bcb291e3d4d1f (diff)
package/busybox: update to busybox-1.7.1, include upstream patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22659 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/920-mktemp.patch')
-rw-r--r--package/busybox/patches/920-mktemp.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/patches/920-mktemp.patch b/package/busybox/patches/920-mktemp.patch
new file mode 100644
index 000000000..7116b1ee6
--- /dev/null
+++ b/package/busybox/patches/920-mktemp.patch
@@ -0,0 +1,11 @@
+--- a/debianutils/mktemp.ci
++++ 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 */