← Commit list

59243a86d

Denys Vlasenko
Denys Vlasenko
2021-08-16
SUCCESS Duration: 153s

Subject

busybox: fix "busybox --help busybox" not showing correct text

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/appletlib.c+5 -1
@@ -893,7 +893,11 @@ int busybox_main(int argc UNUSED_PARAM, char **argv)
if (strcmp(argv[1], "--help") == 0) {
/* "busybox --help [<applet>]" */
- if (!argv[2])
+ if (!argv[2]
+# if ENABLE_FEATURE_SH_STANDALONE && ENABLE_FEATURE_TAB_COMPLETION
+ || strcmp(argv[2], "busybox") == 0 /* prevent getting "No help available" */
+# endif
+ )
goto help;
/* convert to "<applet> --help" */
applet_name = argv[0] = argv[2];