0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-09 13:41:55 +00:00
Files
termux-packages/packages/tar/tmpdir-path.patch
2023-07-21 16:51:33 +01:00

13 lines
541 B
Diff

diff -uNr tar-1.33/src/xheader.c tar-1.33.mod/src/xheader.c
--- tar-1.33/src/xheader.c 2021-01-06 15:52:09.000000000 +0000
+++ tar-1.33.mod/src/xheader.c 2021-02-07 21:18:57.425078913 +0000
@@ -404,7 +404,7 @@
const char *global_header_template = HEADER_TEMPLATE (pax_global_header);
const char *tmp = getenv ("TMPDIR");
if (!tmp)
- tmp = "/tmp";
+ tmp = "@TERMUX_PREFIX@/tmp";
len = strlen (tmp) + strlen (global_header_template) + 1;
globexthdr_name = xmalloc (len);
strcpy(globexthdr_name, tmp);