busybox with single applet enabled
Denys Vlasenko
vda.linux at googlemail.com
Thu May 19 22:50:10 UTC 2011
On Wednesday 18 May 2011 21:54, Sergey Naumov wrote:
> Hello.
>
> I want to ask if there a way to make compiling busybox as single
> applet as explicit option?
> Let's imagine a typical situation:
> you changed some applet and now you want to test it. You call "make
> allnoconfig",
> then in menuconfig you enable desired applet, make busybox and call
> applet as usual:
> ./busybox applet parameters
>
> And... your parameters are treated differently than for ./applet -> ./busybox,
> ./applet parameters case.
>
> May be busybox gurus aware of it, but it looks like a bug for regular
> users, or, OK, at least for me =)
> It took about 30 mins to find run_applet_and_exit() function and
> realize that it is wrapped by #ifdef
> for multi-applet busybox.
busybox is about small size. If binary contains exactly one applet,
why it should include any code to check its name?
--
vda
More information about the busybox
mailing list