termux-packages/packages/zsh/exec_bin_sh.patch

22 lines
634 B
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
diff -u -r ../zsh-5.0.5/Src/exec.c ./Src/exec.c
--- ../zsh-5.0.5/Src/exec.c 2014-01-02 18:34:49.000000000 +0100
+++ ./Src/exec.c 2014-02-03 02:51:11.000000000 +0100
@@ -508,7 +508,7 @@
} else if (eno == ENOEXEC) {
argv[-1] = "sh";
winch_unblock();
- execve("/bin/sh", argv - 1, newenvp);
+ execve("/system/bin/sh", argv - 1, newenvp);
}
} else if (eno == ENOEXEC) {
for (t0 = 0; t0 != ct; t0++)
@@ -517,7 +517,7 @@
if (t0 == ct) {
argv[-1] = "sh";
winch_unblock();
- execve("/bin/sh", argv - 1, newenvp);
+ execve("/system/bin/sh", argv - 1, newenvp);
}
}
} else