aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 17216baab..403f5614f 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -1111,8 +1111,11 @@ int main(int argc UNUSED_PARAM, char **argv)
1111 1111
1112 lbb_prepare("busybox" IF_FEATURE_INDIVIDUAL(, argv)); 1112 lbb_prepare("busybox" IF_FEATURE_INDIVIDUAL(, argv));
1113# if !ENABLE_BUSYBOX 1113# if !ENABLE_BUSYBOX
1114 if (argv[1] && is_prefixed_with(bb_basename(argv[0]), "busybox")) 1114 if (argv[1] && argv[1][0] != '-' /* do not match "busybox --OPT" */
1115 && is_prefixed_with(bb_basename(argv[0]), "busybox")
1116 ) {
1115 argv++; 1117 argv++;
1118 }
1116# endif 1119# endif
1117 applet_name = argv[0]; 1120 applet_name = argv[0];
1118 if (applet_name[0] == '-') 1121 if (applet_name[0] == '-')