busybox: fix path to /bin/sh
This commit is contained in:
parent
3580901ab7
commit
58ab080810
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Tiny versions of many common UNIX utilities into a singl
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_ESSENTIAL=yes
|
||||
TERMUX_PKG_VERSION=1.30.1
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SHA256=3d1d04a4dbd34048f4794815a5c48ebb9eb53c5277e09ffffc060323b95dfbdc
|
||||
TERMUX_PKG_SRCURL=https://busybox.net/downloads/busybox-${TERMUX_PKG_VERSION}.tar.bz2
|
||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
12
packages/busybox/util-linux-setarch.c.patch
Normal file
12
packages/busybox/util-linux-setarch.c.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr busybox-1.30.1/util-linux/setarch.c busybox-1.30.1.mod/util-linux/setarch.c
|
||||
--- busybox-1.30.1/util-linux/setarch.c 2018-12-30 17:14:20.000000000 +0200
|
||||
+++ busybox-1.30.1.mod/util-linux/setarch.c 2019-03-02 14:06:38.150442254 +0200
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
argv += optind;
|
||||
if (!argv[0])
|
||||
- (--argv)[0] = (char*)"/bin/sh";
|
||||
+ (--argv)[0] = (char*)"@TERMUX_PREFIX@/bin/sh";
|
||||
|
||||
/* Try to execute the program */
|
||||
BB_EXECVP_or_die(argv);
|
Loading…
Reference in New Issue
Block a user