termux-packages/packages/pari/src-language-es.c.patch

14 lines
450 B
Diff
Raw Normal View History

2021-12-13 16:14:58 +01:00
--- a/src/language/es.c
+++ b/src/language/es.c
@@ -4784,8 +4784,8 @@ pari_tmp_dir(void)
s = env_ok("TEMP"); if (s) return s;
#endif
#if defined(UNIX) || defined(__EMX__)
- if (pari_is_rwx("/tmp")) return "/tmp";
- if (pari_is_rwx("/var/tmp")) return "/var/tmp";
+ if (pari_is_rwx("@TERMUX_PREFIX@/tmp")) return "@TERMUX_PREFIX@/tmp";
+ if (pari_is_rwx("@TERMUX_PREFIX@/var/tmp")) return "@TERMUX_PREFIX@/var/tmp";
#endif
return ".";
}