randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-07-05 21:37:12 +02:00
parent 08f0b784fd
commit 9297dbc9d2
14 changed files with 39 additions and 25 deletions

View File

@@ -195,7 +195,11 @@ void lbb_prepare(const char *applet
#if ENABLE_FEATURE_INDIVIDUAL
/* Redundant for busybox (run_applet_and_exit covers that case)
* but needed for "individual applet" mode */
if (argv[1] && !argv[2] && strcmp(argv[1], "--help") == 0) {
if (argv[1]
&& !argv[2]
&& strcmp(argv[1], "--help") == 0
&& strncmp(applet, "busybox", 7) != 0
) {
/* Special case. POSIX says "test --help"
* should be no different from e.g. "test --foo". */
if (!ENABLE_TEST || strcmp(applet_name, "test") != 0)