Allow "busybox <applet>" to work when busybox is disabled
A recent commit made it possible to disable BusyBox's --install and --list options. However it also stopped "busybox <applet> <params>" from working. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e4caf1dd9c
commit
ba12081a9e
@ -956,6 +956,10 @@ int main(int argc UNUSED_PARAM, char **argv)
|
||||
#else
|
||||
lbb_prepare("busybox" IF_FEATURE_INDIVIDUAL(, argv));
|
||||
|
||||
#if !ENABLE_BUSYBOX
|
||||
if (argv[1] && is_prefixed_with(bb_basename(argv[0]), "busybox"))
|
||||
argv++;
|
||||
#endif
|
||||
applet_name = argv[0];
|
||||
if (applet_name[0] == '-')
|
||||
applet_name++;
|
||||
|
Loading…
Reference in New Issue
Block a user