1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 13:14:09 +00:00
termux-packages/packages/iperf3/src-iperf_api.c.patch
2017-07-26 14:20:51 +02:00

13 lines
470 B
Diff

diff -u -r ../iperf-3.2/src/iperf_api.c ./src/iperf_api.c
--- ../iperf-3.2/src/iperf_api.c 2017-06-26 19:42:56.000000000 +0200
+++ ./src/iperf_api.c 2017-07-26 14:00:54.136126122 +0200
@@ -3168,7 +3168,7 @@
tempdir = getenv("TMP");
}
if (tempdir == 0){
- tempdir = "/tmp";
+ tempdir = "@TERMUX_PREFIX@/tmp";
}
snprintf(template, sizeof(template) / sizeof(char), "%s/iperf3.XXXXXX", tempdir);
}