summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>1997-12-06 17:13:54 +0000
committersef <sef@FreeBSD.org>1997-12-06 17:13:54 +0000
commit48a1f82a2e097d7db7c9f656f547c8a8bc1f90eb (patch)
tree3ef3ad805697c4cb2989740572cb87791b3cfe97 /usr.bin/truss
parent3ab5048d8818156d9027e8e4d323962bd63dd7d5 (diff)
downloadFreeBSD-src-48a1f82a2e097d7db7c9f656f547c8a8bc1f90eb.zip
FreeBSD-src-48a1f82a2e097d7db7c9f656f547c8a8bc1f90eb.tar.gz
Complain about empty command lines.
Diffstat (limited to 'usr.bin/truss')
-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