714 prstat is muddled in its bitwise ops
authorRichard Lowe <richlowe@richlowe.net>
Wed, 09 Feb 2011 11:47:57 -0500
changeset 13287 c545300d0621
parent 13286 590780cedaf1
child 13288 8f9968bb4e4e
714 prstat is muddled in its bitwise ops Reviewed by: [email protected] Reviewed by: [email protected] Approved by: [email protected]
usr/src/cmd/prstat/prstat.c
--- a/usr/src/cmd/prstat/prstat.c	Wed Feb 09 11:47:49 2011 -0500
+++ b/usr/src/cmd/prstat/prstat.c	Wed Feb 09 11:47:57 2011 -0500
@@ -1486,7 +1486,7 @@
 	    ((opts.o_outpmode & (OPT_PSINFO | OPT_MSACCT))))
 		Die(gettext("-t option cannot be used with -v or -m\n"));
 
-	if ((opts.o_outpmode & OPT_SPLIT) && (opts.o_outpmode && OPT_USERS) &&
+	if ((opts.o_outpmode & OPT_SPLIT) && (opts.o_outpmode & OPT_USERS) &&
 	    !((opts.o_outpmode & (OPT_PSINFO | OPT_MSACCT))))
 		Die(gettext("-t option cannot be used with "
 		    "-a, -J, -T or -Z\n"));