[re]Bug in busybox base applet?

Dirk Clemens develop at cle-mens.de
Thu Sep 1 10:12:29 UTC 2005


Bernd Petrovitsch wrote:

>>
>>The main busybox applet is only called, when the name begins
>>with 'busybox'. Because of this, busybox names like 'busybox1'
>>or 'busybox-new' works well and we have not unwanted results
>>if busybox called with something like 'ls rm -r /'.
>>    
>>
>
>Additionally you could tell the busybox program it's own pure name after
>installation. In typical cross-compile situations you have to install it
>anyway with a known name and in RPM/DEB/IPKG/... you also know it.
>  
>

An other solution:
In the configuration there is an additional string field (or 2?)
interpreted as a simple string pattern. The dafault is 'busybox'.

An the busybox known that it is called as 'busybox main applet',
when argv[0] contains that pattern. (function strstr())

Dirk



More information about the busybox mailing list