dash: fix default PATH

This commit is contained in:
Leonid Pliushch 2018-06-21 10:47:56 +03:00 committed by Fredrik Fornwall
parent 2b877693b5
commit 586f8b84c0
2 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://gondor.apana.org.au/~herbert/dash/
TERMUX_PKG_DESCRIPTION="Small POSIX-compliant implementation of /bin/sh"
TERMUX_PKG_ESSENTIAL=yes
TERMUX_PKG_VERSION=0.5.10.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=3c663919dc5c66ec991da14c7cf7e0be8ad00f3db73986a987c118862b5f6071
TERMUX_PKG_SRCURL=http://gondor.apana.org.au/~herbert/dash/files/dash-${TERMUX_PKG_VERSION}.tar.gz

View File

@ -0,0 +1,12 @@
diff -uNr dash-0.5.10.2/src/var.c dash-0.5.10.2.mod/src/var.c
--- dash-0.5.10.2/src/var.c 2018-05-17 14:10:58.000000000 +0300
+++ dash-0.5.10.2.mod/src/var.c 2018-06-21 10:46:49.260059837 +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:@TERMUX_PREFIX@/bin/applets";
#ifdef IFS_BROKEN
const char defifsvar[] = "IFS= \t\n";
#else