termux-packages/packages/ncurses/tic-fix-tmp-path.patch
2017-09-14 16:40:00 +02:00

13 lines
456 B
Diff

diff -uNr ncurses-6.0-20170909/progs/tic.c ncurses-6.0-20170909.mod/progs/tic.c
--- ncurses-6.0-20170909/progs/tic.c 2017-08-26 23:56:55.000000000 +0300
+++ ncurses-6.0-20170909.mod/progs/tic.c 2017-09-14 15:45:21.992857305 +0300
@@ -386,7 +386,7 @@
{
FILE *result = 0;
- _nc_STRCPY(filename, "/tmp/XXXXXX", PATH_MAX);
+ _nc_STRCPY(filename, "@TERMUX_PREFIX@/tmp/XXXXXX", PATH_MAX);
#if HAVE_MKSTEMP
{
int oldmask = (int) umask(077);