termux-packages/packages/git/wrapper.c.patch
2016-05-21 18:05:32 -04:00

13 lines
364 B
Diff

diff -u -r ../git-2.8.1/wrapper.c ./wrapper.c
--- ../git-2.8.1/wrapper.c 2016-04-03 15:07:18.000000000 -0400
+++ ./wrapper.c 2016-04-28 07:24:14.514073661 -0400
@@ -437,7 +437,7 @@
tmp = getenv("TMPDIR");
if (!tmp)
- tmp = "/tmp";
+ tmp = "@TERMUX_PREFIX@/tmp";
n = snprintf(path, len, "%s/%s", tmp, template);
if (len <= n) {
errno = ENAMETOOLONG;