You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
495 B
19 lines
495 B
7 years ago
|
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);
|
||
7 years ago
|
+ execl("@TERMUX_PREFIX@/bin/sh", "@TERMUX_PREFIX@/bin/sh", "-c", zCmd, (char*)0);
|
||
7 years ago
|
return 1;
|
||
|
}else{
|
||
|
/* This is the parent process */
|
||
|
close(pin[1]);
|
||
|
*pfdIn = pin[0];
|
||
|
|