diff options
author | mjg <mjg@FreeBSD.org> | 2013-01-12 22:20:37 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2013-01-12 22:20:37 +0000 |
commit | cece81b0c06580ab14f68e07fe2a9379a8a2f2ea (patch) | |
tree | 0ab54093f5b318c7b79d2610dd97954975f0d00e /usr.bin | |
parent | 8de7e6376516d3e9b28116150334515cc78459ed (diff) | |
download | FreeBSD-src-cece81b0c06580ab14f68e07fe2a9379a8a2f2ea.zip FreeBSD-src-cece81b0c06580ab14f68e07fe2a9379a8a2f2ea.tar.gz |
procstat: only one mode flag can be specified, but required check for 'i'
and 'j' modes was missing. Fix that.
MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/procstat/procstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/procstat/procstat.c b/usr.bin/procstat/procstat.c index b0cee6b..934e292 100644 --- a/usr.bin/procstat/procstat.c +++ b/usr.bin/procstat/procstat.c @@ -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(); |