← Commit list

1e98a0705

"Vladimir N. Oleynik"
"Vladimir N. Oleynik"
2006-01-25
SUCCESS Duration: 25s

Subject

close bug 638

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/kill.c+5 -1
@@ -89,7 +89,7 @@ extern int kill_main(int argc, char **argv)
#ifdef CONFIG_KILLALL
/* The -q quiet option */
- if(argv[1][1]=='q' && argv[1][2]=='\0'){
+ if(whichApp != KILL && argv[1][1]=='q' && argv[1][2]=='\0'){
quiet++;
argv++;
argc--;
@@ -106,6 +106,10 @@ extern int kill_main(int argc, char **argv)
do_it_now:
+ /* Pid or name required */
+ if (argc <= 0)
+ bb_show_usage();
+
if (whichApp == KILL) {
/* Looks like they want to do a kill. Do that */
while (--argc >= 0) {