Commit | Line | Data |
---|---|---|
6d57375a RK |
1 | Index: src/popen.c |
2 | ================================================================== | |
3 | --- a/src/popen.c | |
4 | +++ b/src/popen.c | |
5 | @@ -189,11 +189,11 @@ | |
6 | close(1); | |
7 | fd = dup(pin[1]); | |
8 | if( fd!=1 ) nErr++; | |
9 | close(pin[0]); | |
10 | close(pin[1]); | |
11 | - execl("/bin/sh", "/bin/sh", "-c", zCmd, (char*)0); | |
dd788f8d | 12 | + execl("@TERMUX_PREFIX@/bin/sh", "@TERMUX_PREFIX@/bin/sh", "-c", zCmd, (char*)0); |
6d57375a RK |
13 | return 1; |
14 | }else{ | |
15 | /* This is the parent process */ | |
16 | close(pin[1]); | |
17 | *pfdIn = pin[0]; | |
18 |