Bug in busybox base applet?

Rob Landley rob at landley.net
Wed Aug 31 21:59:08 UTC 2005

On Wednesday 31 August 2005 06:01, Vladimir N. Oleynik wrote:
> 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

It announced that I tried to run aaa, and it couldn't find bbb.

$ rm aaa
$ ln -s ../busybox aaa
$ ./aaa bbb
bbb: applet not found

That implied I tried to run bbb, which I didn't.

Dangerous, I don't know about, but it's wrong.


More information about the busybox mailing list