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 | ||||
0001335 | [BusyBox] Documentation | major | always | 05-06-07 07:02 | 05-06-07 15:49 | ||||
Reporter | Souf | View Status | public | ||||||
Assigned To | BusyBox | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | svn | ||||||
Summary | 0001335: [BUG] killall5 does not work with path: /path/to/killall5 | ||||||||
Description |
when I run killall5 like this: /usr/bin/killall5 -9 why ? In kill.c : const int killall = (ENABLE_KILLALL && argv[0][4] == 'a' && (!ENABLE_KILLALL5 || argv[0][7] != '5')); const int killall5 = (ENABLE_KILLALL5 && argv[0][4] == 'a' && (!ENABLE_KILLALL || argv[0][7] == '5')); argv[0][4] = / argv[0][7] = n patch: @@ -30,10 +30,10 @@ int kill_main(int argc, char **argv) char *arg; pid_t pid; int signo = SIGTERM, errors = 0, quiet = 0; - const int killall = (ENABLE_KILLALL && argv[0][4] == 'a' - && (!ENABLE_KILLALL5 || argv[0][7] != '5')); - const int killall5 = (ENABLE_KILLALL5 && argv[0][4] == 'a' - && (!ENABLE_KILLALL || argv[0][7] == '5')); + const int killall = (ENABLE_KILLALL && bb_get_last_path_component(argv[0])[4] == 'a' + && (!ENABLE_KILLALL5 || bb_get_last_path_component(argv[0])[7] != '5')); + const int killall5 = (ENABLE_KILLALL5 && bb_get_last_path_component(argv[0])[4] == 'a' + && (!ENABLE_KILLALL || bb_get_last_path_component(argv[0])[7] == '5')); /* Parse any options */ argc--; |
||||||||
Additional Information | |||||||||
Attached Files | kill.diff [^] (900 bytes) 05-06-07 07:02 | ||||||||
|
Notes | |
(0002341) Souf 05-06-07 07:07 |
Sorry, the category of this report is OTHER not DOCUMENTATION |
(0002342) vda 05-06-07 15:49 |
Sorry, it's my recent bug. Fixed in rev 18567. Thanks! |
Copyright © 2000 - 2006 Mantis Group |