[BusyBox] change busybox behavior

Mark Whitley markw at lineo.com
Wed Jan 24 22:58:22 UTC 2001


On Wed, Jan 24, 2001 at 02:46:20PM -0700, Matt Kraai wrote:
> Howdy,
> 
> Applet choosing has some strange behavior:
> 
> $ ln -s busybox fubar
> $ ./fubar echo this
> this
> $ ./busybox echo --install
> busybox: /usr/bin/basename: File exists
> ...
> $ 
> 
> The attached patch changes the behavior so that (a) it only checks
> for the --install option if the applet being run is explicitly
> busybox, and (b) it doesn't silently ignore applets that it
> doesn't know about.  That is, the new behavior is:
> 
> $ ./fubar echo this
> fubar: applet not found
> $ ./busybox echo --install
> --install
> $ 
> 
> Normally I'd just apply this, but as we are so close to release
> I think some form of official approval is necessary.

Matt, I applied this and tested it. I can see what you're trying to do
(correct me if I'm wrong): You want to make it so that if the applet search
fails (in this case, no applet named 'fubar' is found), it tells you and
bails. I think that's probably a good idea. It's up to Erik if he wants to put
this in before the release. Personally, I think it's not an urgent fix
(meaning, it could wait), but it also seems fairly low-risk. So, like I said,
up to Erik if he wants this to go in.

Mark Whitley
markw at lineo.com





More information about the busybox mailing list