1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-15 16:19:42 +02:00
openwrt-xburst/package/busybox/patches/920-mktemp.patch

12 lines
359 B
Diff
Raw Normal View History

--- 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 */