changeset 13287:c545300d0621

714 prstat is muddled in its bitwise ops Reviewed by: garrett@nexenta.com Reviewed by: roland.mainz@nrubsig.org Approved by: garrett@nexenta.com
author Richard Lowe <richlowe@richlowe.net>
date Wed, 09 Feb 2011 11:47:57 -0500
parents 590780cedaf1
children 8f9968bb4e4e
files usr/src/cmd/prstat/prstat.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"));