summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/truss/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index 90ca0dd..838237a 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -4,7 +4,7 @@
* do a lot of the work :).
*/
/*
- * $Id: main.c,v 1.2 1997/12/06 14:39:30 peter Exp $
+ * $Id: main.c,v 1.3 1997/12/06 14:41:41 peter Exp $
*/
#include <stdio.h>
@@ -117,7 +117,7 @@ main(int ac, char **av) {
}
ac -= optind; av += optind;
- if (ac && pid != 0)
+ if ((pid == 0 && ac == 0) || (pid != 0 && ac != 0))
usage();
/*
OpenPOWER on IntegriCloud