@@ -1,19 +1,19 @@
1Allow BusyBox to be invoked as "<something>-busybox". This is
1Allow BusyBox to be invoked as "<something>-busybox". This is
2necessary when it's run from the Nix store as <hash>-busybox during
2necessary when it's run from the Nix store as <hash>-busybox during
3stdenv bootstrap.
3stdenv bootstrap.
4−--- busybox-1.26.1-orig/libbb/appletlib.orig 2016-10-26 19:54:20.510957575 -0400
4+--- a/libbb/appletlib.c
5−+++ busybox-1.26.1/libbb/appletlib.c 2016-10-26 19:48:31.590862853 -0400
5++++ b/libbb/appletlib.c
6−@@ -887,7 +887,7 @@
6+@@ -947,7 +947,7 @@ void FAST_FUNC run_applet_no_and_exit(int applet_no, const char *name, char **ar
7 static NORETURN void run_applet_and_exit(const char *name, char **argv)
7 static NORETURN void run_applet_and_exit(const char *name, char **argv)
9 # if ENABLE_BUSYBOX
9 # if ENABLE_BUSYBOX
10- if (is_prefixed_with(name, "busybox"))
10- if (is_prefixed_with(name, "busybox"))
11+ if (strstr(name, "busybox") != 0)
11+ if (strstr(name, "busybox") != 0)
12− exit(busybox_main(argv));
12+ exit(busybox_main(/*unused:*/ 0, argv));
14 # if NUM_APPLETS > 0
14 # if NUM_APPLETS > 0
15−@@ -981,7 +981,7 @@ int main(int argc UNUSED_PARAM, char **argv)
15+@@ -1045,7 +1045,7 @@ int main(int argc UNUSED_PARAM, char **argv)
17 lbb_prepare("busybox" IF_FEATURE_INDIVIDUAL(, argv));
17 lbb_prepare("busybox" IF_FEATURE_INDIVIDUAL(, argv));
18 # if !ENABLE_BUSYBOX
18 # if !ENABLE_BUSYBOX
19- if (argv[1] && is_prefixed_with(bb_basename(argv[0]), "busybox"))
19- if (argv[1] && is_prefixed_with(bb_basename(argv[0]), "busybox"))