mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-10 20:00:51 +00:00
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
diff -u -r ../cache/ncurses-snapshots-607c49f34cc52dd88203c15ea09b0505c87a41b8/progs/tic.c ./progs/tic.c
|
|
--- ../cache/ncurses-snapshots-607c49f34cc52dd88203c15ea09b0505c87a41b8/progs/tic.c 2026-01-25 02:08:31.000000000 +0000
|
|
+++ ./progs/tic.c 2026-01-26 22:16:55.806606776 +0000
|
|
@@ -390,7 +390,7 @@
|
|
{
|
|
FILE *result = NULL;
|
|
|
|
- _nc_STRCPY(filename, "/tmp/XXXXXX", PATH_MAX);
|
|
+ _nc_STRCPY(filename, "@TERMUX_PREFIX@/tmp/XXXXXX", PATH_MAX);
|
|
#if HAVE_MKSTEMP
|
|
{
|
|
int oldmask = (int) umask(077);
|
|
@@ -923,7 +923,7 @@
|
|
} else {
|
|
if (infodump == TRUE) {
|
|
/* captoinfo's no-argument case */
|
|
- source_file = "/etc/termcap";
|
|
+ source_file = "@TERMUX_PREFIX@/etc/termcap";
|
|
if ((termcap = getenv("TERMCAP")) != NULL
|
|
&& (namelst = make_namelist(getenv("TERM"))) != NULL) {
|
|
if (access(termcap, F_OK) == 0) {
|
|
diff -uNr ncurses-6.1-20181117/progs/tset.c ncurses-6.1-20181117.mod/progs/tset.c
|
|
--- ncurses-6.1-20181117/progs/tset.c 2017-10-08 03:01:29.000000000 +0300
|
|
+++ ncurses-6.1-20181117.mod/progs/tset.c 2019-03-01 20:40:15.049476720 +0200
|
|
@@ -566,8 +566,8 @@
|
|
goto map;
|
|
}
|
|
#else
|
|
- if ((fp = fopen("/etc/ttytype", "r")) != 0
|
|
- || (fp = fopen("/etc/ttys", "r")) != 0) {
|
|
+ if ((fp = fopen("@TERMUX_PREFIX@/etc/ttytype", "r")) != 0
|
|
+ || (fp = fopen("@TERMUX_PREFIX@/etc/ttys", "r")) != 0) {
|
|
char buffer[BUFSIZ];
|
|
char *s, *t, *d;
|
|
|