diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 6f058bcc8..4924a97c1 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -195,7 +195,11 @@ void lbb_prepare(const char *applet | |||
195 | #if ENABLE_FEATURE_INDIVIDUAL | 195 | #if ENABLE_FEATURE_INDIVIDUAL |
196 | /* Redundant for busybox (run_applet_and_exit covers that case) | 196 | /* Redundant for busybox (run_applet_and_exit covers that case) |
197 | * but needed for "individual applet" mode */ | 197 | * but needed for "individual applet" mode */ |
198 | if (argv[1] && !argv[2] && strcmp(argv[1], "--help") == 0) { | 198 | if (argv[1] |
199 | && !argv[2] | ||
200 | && strcmp(argv[1], "--help") == 0 | ||
201 | && strncmp(applet, "busybox", 7) != 0 | ||
202 | ) { | ||
199 | /* Special case. POSIX says "test --help" | 203 | /* Special case. POSIX says "test --help" |
200 | * should be no different from e.g. "test --foo". */ | 204 | * should be no different from e.g. "test --foo". */ |
201 | if (!ENABLE_TEST || strcmp(applet_name, "test") != 0) | 205 | if (!ENABLE_TEST || strcmp(applet_name, "test") != 0) |