summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-09-05 11:25:27 +0000
committer"Vladimir N. Oleynik"2005-09-05 11:25:27 +0000
commit10a1fe6169cc0c1868715f5baf752b818cdfdc1c (patch)
tree442300356e27fc9231aad6e11d18ba25e359cf85
parent8f991043625a1933f5086a933d92bac28316869a (diff)
downloadbusybox-10a1fe6169cc0c1868715f5baf752b818cdfdc1c.zip
busybox-10a1fe6169cc0c1868715f5baf752b818cdfdc1c.tar.gz
remove infinity loop ./busybox --help busybox
-rw-r--r--applets/busybox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index a495650..833e8d3 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -110,8 +110,9 @@ int busybox_main(int argc, char **argv)
/* Deal with --help. (Also print help when called with no arguments) */
if (argc==1 || !strcmp(argv[1],"--help") ) {
- if (argc>2) run_applet_by_name(bb_applet_name=argv[2], argc, argv);
- else {
+ if (argc>2) {
+ run_applet_by_name(bb_applet_name=argv[2], 2, argv);
+ } else {
const struct BB_applet *a;
int col, output_width;