Add patch for Fossil to use correct shell when emulating popen() (#1340)

fossil: Add patch for to use correct shell when emulating popen()
This commit is contained in:
Roy Keene 2017-09-03 13:29:06 -05:00 committed by Fredrik Fornwall
parent 0f13c041d1
commit 7b9a827c8c

View File

@ -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];