termux-packages/packages/dash/src-var.c.patch

13 lines
457 B
Diff

diff -uNr dash-0.5.11/src/var.c dash-0.5.11.mod/src/var.c
--- dash-0.5.11/src/var.c 2020-05-26 13:02:43.000000000 +0300
+++ dash-0.5.11.mod/src/var.c 2020-06-02 17:58:58.560031312 +0300
@@ -74,7 +74,7 @@
MKINIT struct localvar_list *localvar_stack;
const char defpathvar[] =
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
+ "PATH=@TERMUX_PREFIX@/bin";
char defifsvar[] = "IFS= \t\n";
MKINIT char defoptindvar[] = "OPTIND=1";