Bug in busybox base applet?

Denis Vlasenko vda at ilport.com.ua
Wed Aug 31 10:23:41 UTC 2005

On Wednesday 31 August 2005 10:22, Rob Landley wrote:
> If you create a symlink "sort" and point it at busybox, but you haven't 
> compiled the sort applet into busybox, busybox falls back to being busybox 
> and treating the first argument at the name of the applet to run.
> This means "./sort file" gives you an error message "file: applet not found" 
> which is confusing.

Yay, this is dangerous.

Hmm... the fix may be this: "busybox applet [params]" syntax must work only
if argv[0] is "busybox", otherwise just print "busybox: could not figure out
which applet you wanted to run".

More information about the busybox mailing list