termux-packages/packages/libgrpc/src-core-lib-gpr-tmpfile_posix.cc.patch

12 lines
383 B
Diff
Raw Normal View History

2022-02-20 20:25:12 +01:00
--- a/src/core/lib/gpr/tmpfile_posix.cc
+++ b/src/core/lib/gpr/tmpfile_posix.cc
@@ -39,7 +39,7 @@
if (tmp_filename != nullptr) *tmp_filename = nullptr;
- gpr_asprintf(&filename_template, "/tmp/%s_XXXXXX", prefix);
+ gpr_asprintf(&filename_template, "@TERMUX_PREFIX@/tmp/%s_XXXXXX", prefix);
GPR_ASSERT(filename_template != nullptr);
fd = mkstemp(filename_template);