termux-packages/packages/fish/src-env.cpp.patch

13 lines
494 B
Diff
Raw Normal View History

2019-02-13 23:35:18 +01:00
diff -u -r ../fish-3.0.1/src/env.cpp ./src/env.cpp
--- ../fish-3.0.1/src/env.cpp 2019-02-11 12:13:15.000000000 +0000
+++ ./src/env.cpp 2019-02-13 22:19:56.975817836 +0000
@@ -1663,7 +1663,7 @@
auto pwuid = getpwuid(geteuid());
const char *uname = pwuid ? pwuid->pw_name : NULL;
2018-12-29 00:07:13 +01:00
// /tmp/fish.user
- std::string tmpdir = "/tmp/fish.";
+ std::string tmpdir = "@TERMUX_PREFIX@/tmp/fish.";
2019-02-13 23:35:18 +01:00
if (uname) {
tmpdir.append(uname);
}