Cygwin: utils: kill: revert erroneously removed optind correction
When recognizing a negative pid, optind is off by one. The
code correcting this has been erroneously removed by commit
8de660271f
. Revert that.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -251,7 +251,10 @@ main (int argc, char **argv)
|
||||
break;
|
||||
case '?':
|
||||
if (gotasig) /* this is a negative pid, go ahead */
|
||||
goto out;
|
||||
{
|
||||
--optind;
|
||||
goto out;
|
||||
}
|
||||
optreset = 1;
|
||||
optind = 1 + av - argv;
|
||||
gotasig = *av + 1;
|
||||
|
Reference in New Issue
Block a user