chiark / gitweb /
libgpg-error: workaround no stdout atexit with constructor prior to N (#1017)
[termux-packages] / packages / busybox / mktemp.c.patch
1 diff -u -r ../busybox-1.22.1/debianutils/mktemp.c ./debianutils/mktemp.c
2 --- ../busybox-1.22.1/debianutils/mktemp.c      2014-01-09 19:15:44.000000000 +0100
3 +++ ./debianutils/mktemp.c      2014-06-26 12:52:38.386030778 +0200
4 @@ -43,7 +43,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 @@ -69,7 +69,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);