diff options
author | Denis Vlasenko | 2007-04-09 03:29:43 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-09 03:29:43 +0000 |
commit | 2dfdd44d9d6c3984501683bbac2e78b18eeae1e7 (patch) | |
tree | a7875e0ede6688f526c80c8ecd5c6d683eb3afe7 | |
parent | c44ab01b75aba758fe0aff4b34b25d733e370dc2 (diff) | |
download | busybox-2dfdd44d9d6c3984501683bbac2e78b18eeae1e7.zip busybox-2dfdd44d9d6c3984501683bbac2e78b18eeae1e7.tar.gz |
busybox: fix "<applet>: applet not found" message
-rw-r--r-- | applets/applets.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applets/applets.c b/applets/applets.c index c8e85cd..db4ee48 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 "<argv[1]>: 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"); } |