2014-10-29 12:34:46 +00:00
|
|
|
Allow BusyBox to be invoked as "<something>-busybox". This is
|
|
|
|
necessary when it's run from the Nix store as <hash>-busybox during
|
|
|
|
stdenv bootstrap.
|
2017-01-03 13:40:32 +00:00
|
|
|
--- busybox-1.26.1-orig/libbb/appletlib.orig 2016-10-26 19:54:20.510957575 -0400
|
|
|
|
+++ busybox-1.26.1/libbb/appletlib.c 2016-10-26 19:48:31.590862853 -0400
|
|
|
|
@@ -887,7 +887,7 @@
|
|
|
|
static NORETURN void run_applet_and_exit(const char *name, char **argv)
|
|
|
|
{
|
|
|
|
# if ENABLE_BUSYBOX
|
2016-09-25 07:35:12 +01:00
|
|
|
- if (is_prefixed_with(name, "busybox"))
|
2014-10-29 12:34:46 +00:00
|
|
|
+ if (strstr(name, "busybox") != 0)
|
|
|
|
exit(busybox_main(argv));
|
2017-01-03 13:40:32 +00:00
|
|
|
# endif
|
|
|
|
# if NUM_APPLETS > 0
|