diff options
-rw-r--r-- | libbb/appletlib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index d8ab2a450..9b9d7dbd6 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -258,7 +258,6 @@ void lbb_prepare(const char *applet | |||
258 | /* Redundant for busybox (run_applet_and_exit covers that case) | 258 | /* Redundant for busybox (run_applet_and_exit covers that case) |
259 | * but needed for "individual applet" mode */ | 259 | * but needed for "individual applet" mode */ |
260 | if (argv[1] | 260 | if (argv[1] |
261 | && !argv[2] | ||
262 | && strcmp(argv[1], "--help") == 0 | 261 | && strcmp(argv[1], "--help") == 0 |
263 | && !is_prefixed_with(applet, "busybox") | 262 | && !is_prefixed_with(applet, "busybox") |
264 | ) { | 263 | ) { |
@@ -940,8 +939,8 @@ void FAST_FUNC show_usage_if_dash_dash_help(int applet_no, char **argv) | |||
940 | && applet_no != APPLET_NO_echo | 939 | && applet_no != APPLET_NO_echo |
941 | # endif | 940 | # endif |
942 | ) { | 941 | ) { |
943 | if (argv[1] && !argv[2] && strcmp(argv[1], "--help") == 0) { | 942 | if (argv[1] && strcmp(argv[1], "--help") == 0) { |
944 | /* Make "foo --help" exit with 0: */ | 943 | /* Make "foo --help [...]" exit with 0: */ |
945 | xfunc_error_retval = 0; | 944 | xfunc_error_retval = 0; |
946 | bb_show_usage(); | 945 | bb_show_usage(); |
947 | } | 946 | } |