projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f99104
)
remove infinity loop ./busybox --help busybox
author
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Mon, 5 Sep 2005 11:25:27 +0000
(11:25 -0000)
committer
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Mon, 5 Sep 2005 11:25:27 +0000
(11:25 -0000)
applets/busybox.c
patch
|
blob
|
history
diff --git
a/applets/busybox.c
b/applets/busybox.c
index a49565008df6f80b967f3029fe2391cec5a9e9c5..833e8d37292ccb8fa603aa43d311182692a256b8 100644
(file)
--- 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;