aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/920-mktemp.patch
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-08-15 09:53:21 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-08-15 09:53:21 +0000
commite0d13e77d09997a13c73b58dd3e6232d45c8d1a5 (patch)
tree6713ede79915815b117035c65a1ce7a8c87bf7bf /package/busybox/patches/920-mktemp.patch
parent462dabc7f55d5e5f0aa7d63c10b66e25a091f405 (diff)
downloadupstream-e0d13e77d09997a13c73b58dd3e6232d45c8d1a5.tar.gz
upstream-e0d13e77d09997a13c73b58dd3e6232d45c8d1a5.tar.bz2
upstream-e0d13e77d09997a13c73b58dd3e6232d45c8d1a5.zip
package/busybox: update to busybox-1.7.1, include upstream patches
SVN-Revision: 22659
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 0000000000..7116b1ee6a
--- /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 */