diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 841494a70..e99d3a5c4 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -864,6 +864,10 @@ int main(int argc UNUSED_PARAM, char **argv) | |||
864 | applet_name = applet_name_env; | 864 | applet_name = applet_name_env; |
865 | unsetenv("BUSYBOX_APPLET_NAME"); | 865 | unsetenv("BUSYBOX_APPLET_NAME"); |
866 | } | 866 | } |
867 | else if ( argv[1] && argv[2] && strcmp(argv[1], "--busybox") == 0 ) { | ||
868 | argv += 2; | ||
869 | applet_name = argv[0]; | ||
870 | } | ||
867 | else { | 871 | else { |
868 | char *s = argv[0]; | 872 | char *s = argv[0]; |
869 | int i, len = strlen(s); | 873 | int i, len = strlen(s); |