summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-07-29 23:47:44 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-07-29 23:47:44 +0200
commita10c15320803028a53e181dcb48f55e1a9d64051 (patch)
tree7f4635cf09338c971d77644e5a1e2b09ed30f770
parentee77963588b09babfd71befb0b5eb9fd1e776bbc (diff)
downloadbuildroot-novena-a10c15320803028a53e181dcb48f55e1a9d64051.tar.gz
buildroot-novena-a10c15320803028a53e181dcb48f55e1a9d64051.zip
busybox: 1.17.1 mktemp fix
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch b/package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch
new file mode 100644
index 000000000..557e337b1
--- /dev/null
+++ b/package/busybox/busybox-1.17.1/busybox-1.17.1-mktemp.patch
@@ -0,0 +1,12 @@
+diff -urpN busybox-1.17.1/debianutils/mktemp.c busybox-1.17.1-mktemp/debianutils/mktemp.c
+--- busybox-1.17.1/debianutils/mktemp.c 2010-07-25 00:12:56.000000000 +0200
++++ busybox-1.17.1-mktemp/debianutils/mktemp.c 2010-07-27 08:21:26.000000000 +0200
+@@ -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 */