2018-08-19 19:58:43 +02:00
|
|
|
diff --git a/src/shell_manager.cc b/src/shell_manager.cc
|
|
|
|
index b92edb4c..df025943 100644
|
|
|
|
--- a/src/shell_manager.cc
|
|
|
|
+++ b/src/shell_manager.cc
|
|
|
|
@@ -30,9 +30,7 @@ ShellManager::ShellManager(ConstArrayView<EnvVarDesc> builtin_env_vars)
|
|
|
|
{
|
|
|
|
// Get a guaranteed to be POSIX shell binary
|
|
|
|
{
|
|
|
|
- auto size = confstr(_CS_PATH, nullptr, 0);
|
|
|
|
- String path; path.resize(size-1, 0);
|
|
|
|
- confstr(_CS_PATH, path.data(), size);
|
2020-07-09 00:13:07 +02:00
|
|
|
+ String path = "@TERMUX_PREFIX@/bin:.";
|
2018-08-19 19:58:43 +02:00
|
|
|
for (auto dir : StringView{path} | split<StringView>(':'))
|
|
|
|
{
|
|
|
|
String candidate = format("{}/sh", dir);
|