Add patch for Fossil to use correct shell when emulating popen() (#1340)
authorRoy Keene <rkeene@users.noreply.github.com>
Sun, 3 Sep 2017 18:29:06 +0000 (13:29 -0500)
committerFredrik Fornwall <fredrik@fornwall.net>
Sun, 3 Sep 2017 18:29:06 +0000 (20:29 +0200)
fossil: Add patch for to use correct shell when emulating popen()

packages/fossil/fossil-2.3-termux-sh.patch [new file with mode: 0644]

diff --git a/packages/fossil/fossil-2.3-termux-sh.patch b/packages/fossil/fossil-2.3-termux-sh.patch
new file mode 100644 (file)
index 0000000..690ac4a
--- /dev/null
@@ -0,0 +1,18 @@
+Index: src/popen.c
+==================================================================
+--- a/src/popen.c
++++ b/src/popen.c
+@@ -189,11 +189,11 @@
+     close(1);
+     fd = dup(pin[1]);
+     if( fd!=1 ) nErr++;
+     close(pin[0]);
+     close(pin[1]);
+-    execl("/bin/sh", "/bin/sh", "-c", zCmd, (char*)0);
++    execl("/data/data/com.termux/files/usr/bin/sh", "/data/data/com.termux/files/usr/bin/sh", "-c", zCmd, (char*)0);
+     return 1;
+   }else{
+     /* This is the parent process */
+     close(pin[1]);
+     *pfdIn = pin[0];
+