mirror of
https://github.com/termux-pacman/glibc-packages.git
synced 2024-11-23 14:46:18 +00:00
24 lines
795 B
Diff
24 lines
795 B
Diff
diff -uNr wget-1.20.1/lib/tmpdir.c wget-1.20.1.mod/lib/tmpdir.c
|
|
--- wget-1.20.1/lib/tmpdir.c 2018-12-26 22:08:19.000000000 +0200
|
|
+++ wget-1.20.1.mod/lib/tmpdir.c 2019-03-01 18:27:22.434424043 +0200
|
|
@@ -36,7 +36,7 @@
|
|
# ifdef _P_tmpdir /* native Windows */
|
|
# define P_tmpdir _P_tmpdir
|
|
# else
|
|
-# define P_tmpdir "/tmp"
|
|
+# define P_tmpdir "@TERMUX_PREFIX_CLASSICAL@/tmp"
|
|
# endif
|
|
#endif
|
|
|
|
@@ -130,8 +130,8 @@
|
|
#endif
|
|
if (direxists (P_tmpdir))
|
|
dir = P_tmpdir;
|
|
- else if (strcmp (P_tmpdir, "/tmp") != 0 && direxists ("/tmp"))
|
|
- dir = "/tmp";
|
|
+ else if (strcmp (P_tmpdir, "@TERMUX_PREFIX_CLASSICAL@/tmp") != 0 && direxists ("@TERMUX_PREFIX_CLASSICAL@/tmp"))
|
|
+ dir = "@TERMUX_PREFIX_CLASSICAL@/tmp";
|
|
else
|
|
{
|
|
__set_errno (ENOENT);
|