diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-05 21:37:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-05 21:37:12 +0200 |
commit | 9297dbc9d285e823af59c443e0123cb99577569a (patch) | |
tree | 134bb16eaaa4f0a7148aed3a78c7c797108e6568 /libbb/appletlib.c | |
parent | 08f0b784fd4351929090c877605762d664e70098 (diff) | |
download | busybox-w32-9297dbc9d285e823af59c443e0123cb99577569a.tar.gz busybox-w32-9297dbc9d285e823af59c443e0123cb99577569a.tar.bz2 busybox-w32-9297dbc9d285e823af59c443e0123cb99577569a.zip |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/appletlib.c')
-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) |