From 2dfdd44d9d6c3984501683bbac2e78b18eeae1e7 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 9 Apr 2007 03:29:43 +0000 Subject: [PATCH] busybox: fix ": applet not found" message --- applets/applets.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/applets/applets.c b/applets/applets.c index c8e85cdb1..db4ee482e 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -591,7 +591,11 @@ static int busybox_main(int argc, char **argv) puts("\n"); return 0; } - } else run_applet_by_name(argv[1], argc - 1, argv + 1); + } else { + /* we want ": applet not found", not "busybox: ..." */ + applet_name = argv[1]; + run_applet_by_name(argv[1], argc - 1, argv + 1); + } bb_error_msg_and_die("applet not found"); } -- 2.25.1