dpkg: Fallback to rename(2) instead of link(2) for systems not supporting hard linkin...
[termux-packages] / packages / zsh / exec_bin_sh.patch
CommitLineData
59f0d218
FF
1diff -u -r ../zsh-5.0.5/Src/exec.c ./Src/exec.c
2--- ../zsh-5.0.5/Src/exec.c 2014-01-02 18:34:49.000000000 +0100
3+++ ./Src/exec.c 2014-02-03 02:51:11.000000000 +0100
4@@ -508,7 +508,7 @@
5 } else if (eno == ENOEXEC) {
6 argv[-1] = "sh";
7 winch_unblock();
8- execve("/bin/sh", argv - 1, newenvp);
9+ execve("/system/bin/sh", argv - 1, newenvp);
10 }
11 } else if (eno == ENOEXEC) {
12 for (t0 = 0; t0 != ct; t0++)
13@@ -517,7 +517,7 @@
14 if (t0 == ct) {
15 argv[-1] = "sh";
16 winch_unblock();
17- execve("/bin/sh", argv - 1, newenvp);
18+ execve("/system/bin/sh", argv - 1, newenvp);
19 }
20 }
21 } else