termux-packages/packages/debianutils/tempfile.c.patch
Fredrik Fornwall 59f0d218a6 Initial push
2015-06-13 01:03:31 +02:00

12 lines
374 B
Diff

diff -u -r ../debianutils-4.4/tempfile.c ./tempfile.c
--- ../debianutils-4.4/tempfile.c 2013-07-28 03:30:26.000000000 +0200
+++ ./tempfile.c 2014-05-30 16:13:08.000000000 +0200
@@ -59,6 +59,7 @@
int
main (int argc, char **argv)
{
+ setenv("TMPDIR", "@TERMUX_PREFIX@/tmp", 0);
char *name=0, *dir=0, *pfx=0, *sfx=0, *filename=0;
mode_t mode = 0600;
int fd, optc;