pkill -u uid fix

pkill would not parse -u <uid> options correctly and needed no space
between the flag and uid.

Bug-Debian: http://bugs.debian.org/676239
Signed-Of-By: Craig Small <csmall@enc.com.au>
This commit is contained in:
Alfredo Esteban 2012-06-11 22:30:01 +10:00 committed by Craig Small
parent a5ba6b98c1
commit a5d9c40262
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -4,6 +4,7 @@ procps-ng-3.3.4
* w get -i option to display IP addresses
* watch 8bit fixes Debian #675069
* Fixed FTBFS for non-linux Debian #677055
* pkill -u <uid> doesnt need space Debian #676239
procps-ng-3.3.3
---------------

View File

@ -564,7 +564,7 @@ int signal_option(int *argc, char **argv)
{
int sig;
int i = 1;
while (i < *argc) {
if (argc > 2 && argv[1][0] == '-') {
sig = signal_name_to_number(argv[i] + 1);
if (sig == -1 && isdigit(argv[1][1]))
sig = atoi(argv[1] + 1);