brcm47xx: do not read out cfe
[openwrt/openwrt.git] / package / busybox / patches / 920-mktemp.patch
1 --- a/debianutils/mktemp.c
2 +++ b/debianutils/mktemp.c
3 @@ -50,7 +50,7 @@ int mktemp_main(int argc UNUSED_PARAM, c
4 opts = getopt32(argv, "dqtp:", &path);
5
6 chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX");
7 - if (chp[0] != '/' || (opts & 8))
8 + if (!strchr(chp, '/') || (opts & 8))
9 chp = concat_path_file(path, chp);
10
11 if (opts & 1) { /* -d */