* kill.cc (main): Skip to PID loop on invalid option to handle

negative pids there.
This commit is contained in:
Corinna Vinschen 2009-10-12 16:01:44 +00:00
parent d358c9e9b0
commit 9e278ffd2c
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-10-12 Corinna Vinschen <corinna@vinschen.de>
* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.
2009-08-11 Corinna Vinschen <corinna@vinschen.de>
* mkgroup.c (enum_local_groups): Avoid error message if given group

View File

@ -249,10 +249,8 @@ main (int argc, char **argv)
case '?':
if (gotasig)
{
pid = strtoll (argv[optind], &p, 10);
if (pid < 0)
goto out;
usage ();
--optind;
goto out;
}
optreset = 1;
optind = 1 + av - argv;