2005-02-01 Roland McGrath <roland@redhat.com>
* syscall.c (qual_signal): Fix inverted return value and bogus argument to qualify_one in the named case.
This commit is contained in:
parent
f01185e5d4
commit
76421df9b2
@ -311,7 +311,7 @@ qual_signal(s, opt, not)
|
||||
|
||||
if (s && *s && isdigit((unsigned char)*s)) {
|
||||
qualify_one(atoi(s), opt, not);
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
if (strlen(s) >= sizeof buf)
|
||||
return 0;
|
||||
@ -323,10 +323,10 @@ qual_signal(s, opt, not)
|
||||
s += 3;
|
||||
for (i = 0; i <= NSIG; i++)
|
||||
if (strcmp(s, signame(i) + 3) == 0) {
|
||||
qualify_one(atoi(s), opt, not);
|
||||
return 1;
|
||||
qualify_one(i, opt, not);
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user