Use PCRE (#2349)
[termux-packages] / packages / git / tempfile.c.patch
1 diff -u -r ../git-2.8.1/tempfile.c ./tempfile.c
2 --- ../git-2.8.1/tempfile.c 2016-04-03 15:07:18.000000000 -0400
3 +++ ./tempfile.c 2016-04-28 07:22:47.339509915 -0400
4 @@ -170,7 +170,7 @@
5
6 tmpdir = getenv("TMPDIR");
7 if (!tmpdir)
8 - tmpdir = "/tmp";
9 + tmpdir = "@TERMUX_PREFIX@/tmp";
10
11 strbuf_addf(&tempfile->filename, "%s/%s", tmpdir, template);
12 tempfile->fd = git_mkstemps_mode(tempfile->filename.buf, suffixlen, mode);