Fredrik Fornwall
9 years ago
3 changed files with 34 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||||
|
diff -u -r ../git-2.8.1/tempfile.c ./tempfile.c
|
||||
|
--- ../git-2.8.1/tempfile.c 2016-04-03 15:07:18.000000000 -0400
|
||||
|
+++ ./tempfile.c 2016-04-28 07:22:47.339509915 -0400
|
||||
|
@@ -170,7 +170,7 @@
|
||||
|
|
||||
|
tmpdir = getenv("TMPDIR"); |
||||
|
if (!tmpdir) |
||||
|
- tmpdir = "/tmp";
|
||||
|
+ tmpdir = "@TERMUX_PREFIX@/tmp";
|
||||
|
|
||||
|
strbuf_addf(&tempfile->filename, "%s/%s", tmpdir, template); |
||||
|
tempfile->fd = git_mkstemps_mode(tempfile->filename.buf, suffixlen, mode); |
@ -0,0 +1,21 @@ |
|||||
|
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; |
||||
|
@@ -454,7 +454,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; |
Loading…
Reference in new issue