From: Roland McGrath Date: Wed, 2 Feb 2005 03:51:18 +0000 (+0000) Subject: 2005-02-01 Roland McGrath X-Git-Tag: v4.5.18~455 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76421df9b279973ef4f8c6a70142b349bfc39807;p=strace 2005-02-01 Roland McGrath * 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 c5063340..524171c5 100644 --- a/syscall.c +++ b/syscall.c @@ -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