From: michalbednarski Date: Fri, 4 Mar 2016 18:08:21 +0000 (+0100) Subject: php: Update path to /bin/sh for proc_open() X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/fce1dffed9a62d8eed6ef5901d6f00b43cff25cd?hp=-c php: Update path to /bin/sh for proc_open() --- fce1dffed9a62d8eed6ef5901d6f00b43cff25cd diff --git a/packages/php/ext-standard-proc_open.c.patch b/packages/php/ext-standard-proc_open.c.patch new file mode 100644 index 00000000..ac1da788 --- /dev/null +++ b/packages/php/ext-standard-proc_open.c.patch @@ -0,0 +1,15 @@ +diff -u -r ../php-5.6.17/ext/standard/proc_open.c ./ext/standard/proc_open.c > ~/php-proc_open.patch +--- ../php-5.6.17/ext/standard/proc_open.c 2016-03-04 18:41:21.108197300 +0100 ++++ ./ext/standard/proc_open.c 2016-03-04 18:41:58.088196534 +0100 +@@ -881,9 +881,9 @@ + } + + if (env.envarray) { +- execle("/bin/sh", "sh", "-c", command, NULL, env.envarray); ++ execle("@TERMUX_PREFIX@/bin/sh", "sh", "-c", command, NULL, env.envarray); + } else { +- execl("/bin/sh", "sh", "-c", command, NULL); ++ execl("@TERMUX_PREFIX@/bin/sh", "sh", "-c", command, NULL); + } + _exit(127); +