mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-15 18:45:19 +02:00
59736eb773
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22659 3c298f89-4303-0410-b956-a3cf2f4a3e73
12 lines
359 B
Diff
12 lines
359 B
Diff
--- 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 */
|