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. */