From ad9e02601c5109145e20d1e03ae19f41b566d996 Mon Sep 17 00:00:00 2001 From: Sean Eric Fagan Date: Sat, 6 Dec 1997 17:13:54 +0000 Subject: [PATCH] Complain about empty command lines. --- usr.bin/truss/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c index 90ca0ddec917..838237add2fa 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 @@ -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(); /*