termux-packages/packages/php/ext-standard-proc_open.c.patch

16 lines
679 B
Diff
Raw Normal View History

2021-11-26 07:57:52 +01:00
diff -uNr php-8.1.0/ext/standard/proc_open.c php-8.1.0.mod/ext/standard/proc_open.c
--- php-8.1.0/ext/standard/proc_open.c 2021-11-23 19:56:11.000000000 +0100
+++ php-8.1.0.mod/ext/standard/proc_open.c 2021-11-26 05:56:50.783986679 +0100
@@ -1208,9 +1208,9 @@
execvp(ZSTR_VAL(command_str), argv);
} else {
if (env.envarray) {
2021-11-26 07:57:52 +01:00
- execle("/bin/sh", "sh", "-c", ZSTR_VAL(command_str), NULL, env.envarray);
+ execle("@TERMUX_PREFIX@/bin/sh", "sh", "-c", ZSTR_VAL(command_str), NULL, env.envarray);
} else {
2021-11-26 07:57:52 +01:00
- execl("/bin/sh", "sh", "-c", ZSTR_VAL(command_str), NULL);
+ execl("@TERMUX_PREFIX@/bin/sh", "sh", "-c", ZSTR_VAL(command_str), NULL);
}
}
2021-11-26 07:57:52 +01:00