From: Roland McGrath Date: Tue, 25 Apr 2006 07:39:40 +0000 (+0000) Subject: 2006-04-25 Roland McGrath X-Git-Tag: v4.5.18~282 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0c4c0cb881facd0ccf16b0c266875a8bf3e56aa;p=strace 2006-04-25 Roland McGrath * strace.c (main): Fail when nonoption args follow -p switches. Fixes Debian#361302. --- diff --git a/strace.c b/strace.c index 75574d5f..95ab48de 100644 --- a/strace.c +++ b/strace.c @@ -311,7 +311,7 @@ char *argv[]; } } - if (optind == argc && !pflag_seen) + if ((optind == argc) == !pflag_seen) usage(stderr, 1); /* See if they want to run as another user. */