Mercurial > hg > aboriginal
changeset 1180:469a6ce14829
Bugfix for busybox 1.17.1 mktemp dealing with non-absolute subdirectory paths.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 26 Jul 2010 16:47:41 -0500 |
parents | c364e01dcdc6 |
children | 0cc86c6680ac |
files | sources/patches/busybox-1.17.1-mktemp.patch |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/busybox-1.17.1-mktemp.patch Mon Jul 26 16:47:41 2010 -0500 @@ -0,0 +1,14 @@ +# The first bugfix wasn't sufficient for mktemp subdir/filename.XXXXXX + +diff -ru busybox/debianutils/mktemp.c busybox.new/debianutils/mktemp.c +--- busybox/debianutils/mktemp.c 2010-07-24 17:12:56.000000000 -0500 ++++ busybox.new/debianutils/mktemp.c 2010-07-26 16:20:05.000000000 -0500 +@@ -50,7 +50,7 @@ + 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 */