svn commit: r245530 - stable/9/usr.bin/procstat

Mateusz Guzik mjg at FreeBSD.org
Thu Jan 17 02:42:09 UTC 2013


Author: mjg
Date: Thu Jan 17 02:42:08 2013
New Revision: 245530
URL: http://svnweb.freebsd.org/changeset/base/245530

Log:
  MFC r245345:
  procstat: only one mode flag can be specified, but required check for 'i'
  and 'j' modes was missing. Fix that.

Modified:
  stable/9/usr.bin/procstat/procstat.c
Directory Properties:
  stable/9/usr.bin/procstat/   (props changed)

Modified: stable/9/usr.bin/procstat/procstat.c
==============================================================================
--- stable/9/usr.bin/procstat/procstat.c	Thu Jan 17 02:30:32 2013	(r245529)
+++ stable/9/usr.bin/procstat/procstat.c	Thu Jan 17 02:42:08 2013	(r245530)
@@ -216,8 +216,8 @@ main(int argc, char *argv[])
 	argv += optind;
 
 	/* We require that either 0 or 1 mode flags be set. */
-	tmp = bflag + cflag + eflag + fflag + (kflag ? 1 : 0) + lflag + sflag +
-	    tflag + vflag + xflag;
+	tmp = bflag + cflag + eflag + fflag + iflag + jflag + (kflag ? 1 : 0) +
+	    lflag + sflag + tflag + vflag + xflag;
 	if (!(tmp == 0 || tmp == 1))
 		usage();
 


More information about the svn-src-stable-9 mailing list