Bug in busybox base applet?

Vladimir N. Oleynik dzo at simtreas.ru
Thu Sep 1 08:47:22 UTC 2005


Denis,

>>>>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 ;-)
>
>Not absolutely, no.  I just tried it:
>
>$ ln -s /bin/bash aaa
>$ ./aaa bbb
>./aaa: bbb: No such file or directory

Hmm. Probably you have fresher bash, than my version 2.05b.0(1)-release.

> Imagine you accidentally have symlink:
> ls -> busybox_compiled_without_ls_applet
> and you decided to look at a dir named 'rm'
> and at your root dir, reversing the sort order:
> 
> ls rm -r /
> 
> I bet you wouldn't like the result.

But in fact it is a standard problem.
 From for it it is extremely undesirable to start programs from the
current directory. Non busybox specific.
But prohibition of use of other version of the busbox will complicate updating.


--w
vodz



More information about the busybox mailing list