Bug in busybox base applet?

Vladimir N. Oleynik dzo at simtreas.ru
Wed Aug 31 11:01:58 UTC 2005


Denis,

> 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.

No. You can have new version busybox, for example as /bin/busybox-new.
with more applets or without any apllets.

Example two (non busybox host):

$ ln -s /bin/bash ./aaa
$ ls ./bbb
/usr/bin/ls: ./bbb: No such file or directory
$ ./aaa bbb
bbb: bbb: No such file or directory

Absolutely equivalent ;-)


--w
vodz



More information about the busybox mailing list