packages/libadns/: Various minor fixes.
[termux-packages] / packages / busybox / coreutils-mktemp.c.patch
1 diff -u -r ../busybox-1.27.1/coreutils/mktemp.c ./coreutils/mktemp.c
2 --- ../busybox-1.27.1/coreutils/mktemp.c 2017-07-06 15:14:57.000000000 +0000
3 +++ ./coreutils/mktemp.c 2017-07-24 23:44:41.384345896 +0000
4 @@ -52,7 +52,7 @@
5 //usage: "\n -p DIR Use DIR as a base directory (implies -t)"
6 //usage: "\n -u Do not create anything; print a name"
7 //usage: "\n"
8 -//usage: "\nBase directory is: -p DIR, else $TMPDIR, else /tmp"
9 +//usage: "\nBase directory is: -p DIR, else $TMPDIR, else @TERMUX_PREFIX@/tmp"
10 //usage:
11 //usage:#define mktemp_example_usage
12 //usage: "$ mktemp /tmp/temp.XXXXXX\n"
13 @@ -78,7 +78,7 @@
14
15 path = getenv("TMPDIR");
16 if (!path || path[0] == '\0')
17 - path = "/tmp";
18 + path = "@TERMUX_PREFIX@/tmp";
19
20 opt_complementary = "?1"; /* 1 argument max */
21 opts = getopt32(argv, "dqtp:u", &path);