* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.
This commit is contained in:
parent
d358c9e9b0
commit
9e278ffd2c
@ -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>
|
2009-08-11 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* mkgroup.c (enum_local_groups): Avoid error message if given group
|
* mkgroup.c (enum_local_groups): Avoid error message if given group
|
||||||
|
@ -249,10 +249,8 @@ main (int argc, char **argv)
|
|||||||
case '?':
|
case '?':
|
||||||
if (gotasig)
|
if (gotasig)
|
||||||
{
|
{
|
||||||
pid = strtoll (argv[optind], &p, 10);
|
--optind;
|
||||||
if (pid < 0)
|
goto out;
|
||||||
goto out;
|
|
||||||
usage ();
|
|
||||||
}
|
}
|
||||||
optreset = 1;
|
optreset = 1;
|
||||||
optind = 1 + av - argv;
|
optind = 1 + av - argv;
|
||||||
|
Loading…
Reference in New Issue
Block a user