commit | d0c4c0cb881facd0ccf16b0c266875a8bf3e56aa | [log] [tgz] |
---|---|---|
author | Roland McGrath <roland@redhat.com> | Tue Apr 25 07:39:40 2006 +0000 |
committer | Roland McGrath <roland@redhat.com> | Tue Apr 25 07:39:40 2006 +0000 |
tree | 63490cfff2f3363b8ff02274ad1868c9a6621aa7 | |
parent | 4582127fea84ea0a9bcf72367e5bea30deb07715 [diff] [blame] |
2006-04-25 Roland McGrath <roland@redhat.com> * strace.c (main): Fail when nonoption args follow -p switches. Fixes Debian#361302.
diff --git a/strace.c b/strace.c index 75574d5..95ab48d 100644 --- a/strace.c +++ b/strace.c
@@ -311,7 +311,7 @@ } } - if (optind == argc && !pflag_seen) + if ((optind == argc) == !pflag_seen) usage(stderr, 1); /* See if they want to run as another user. */