|
@ -6,7 +6,7 @@ diff -u -r ../zsh-5.0.5/Src/exec.c ./Src/exec.c |
|
|
argv[-1] = "sh"; |
|
|
argv[-1] = "sh"; |
|
|
winch_unblock(); |
|
|
winch_unblock(); |
|
|
- execve("/bin/sh", argv - 1, newenvp);
|
|
|
- execve("/bin/sh", argv - 1, newenvp);
|
|
|
+ execve("/system/bin/sh", argv - 1, newenvp);
|
|
|
+ execve("@TERMUX_PREFIX@/bin/sh", argv - 1, newenvp);
|
|
|
} |
|
|
} |
|
|
} else if (eno == ENOEXEC) { |
|
|
} else if (eno == ENOEXEC) { |
|
|
for (t0 = 0; t0 != ct; t0++) |
|
|
for (t0 = 0; t0 != ct; t0++) |
|
@ -15,7 +15,7 @@ diff -u -r ../zsh-5.0.5/Src/exec.c ./Src/exec.c |
|
|
argv[-1] = "sh"; |
|
|
argv[-1] = "sh"; |
|
|
winch_unblock(); |
|
|
winch_unblock(); |
|
|
- execve("/bin/sh", argv - 1, newenvp);
|
|
|
- execve("/bin/sh", argv - 1, newenvp);
|
|
|
+ execve("/system/bin/sh", argv - 1, newenvp);
|
|
|
+ execve("@TERMUX_PREFIX@/bin/sh", argv - 1, newenvp);
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} else |
|
|
} else |
|
|