busybox: fix "<applet>: applet not found" message

This commit is contained in:
Denis Vlasenko 2007-04-09 03:29:43 +00:00
parent c44ab01b75
commit 2dfdd44d9d

View File

@ -591,7 +591,11 @@ static int busybox_main(int argc, char **argv)
puts("\n"); puts("\n");
return 0; 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"); bb_error_msg_and_die("applet not found");
} }