| Anonymous | Login | Signup for a new account | 11-10-2008 11:14 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001318 | [BusyBox] Other | minor | always | 04-18-07 03:36 | 04-18-07 14:00 | ||||
| Reporter | rockeychu | View Status | public | ||||||
| Assigned To | BusyBox | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | svn | ||||||
| Summary | 0001318: Patch of applet.c for busybox outputting help message by itself | ||||||||
| Description |
Since SVN 18436, running "busybox" or "./busybox" doesn't show help message anymore. The reason is: when argv[1] is NULL, argv[2] is just a illegal address. Patch as following: Index: applets/applets.c =================================================================== --- applets/applets.c (revision 18484) +++ applets/applets.c (working copy) @@ -547,7 +547,7 @@ /* Deal with --help. Also print help when called with no arguments */ if (!argv[1] || !strcmp(argv[1], "--help") ) { - if (argv[2]) { + if (argv[1] && argv[2]) { /* set name for proper "<name>: applet not found" */ applet_name = argv[2]; argv[2] = NULL; |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |