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.
diff --git a/syscall.c b/syscall.c
index c506334..524171c 100644
--- a/syscall.c
+++ b/syscall.c
@@ -311,7 +311,7 @@
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 @@
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