← Commit list

8424dc436

Denys Vlasenko
Denys Vlasenko
2026-02-08
SUCCESS Duration: 144s

Subject

main: !CONFIG_BUSYBOX: "busybox --OPT" is not a call to applet "-OPT"

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
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c

Build Log

(log yok)

Commit Diff GitHub →

libbb/appletlib.c+4 -1
@@ -1111,8 +1111,11 @@ int main(int argc UNUSED_PARAM, char **argv)
lbb_prepare("busybox" IF_FEATURE_INDIVIDUAL(, argv));
# if !ENABLE_BUSYBOX
- if (argv[1] && is_prefixed_with(bb_basename(argv[0]), "busybox"))
+ if (argv[1] && argv[1][0] != '-' /* do not match "busybox --OPT" */
+ && is_prefixed_with(bb_basename(argv[0]), "busybox")
+ ) {
argv++;
+ }
# endif
applet_name = argv[0];
if (applet_name[0] == '-')