procstat: only one mode flag can be specified, but required check for 'i'
and 'j' modes was missing. Fix that. MFC after: 3 days
This commit is contained in:
parent
865aea63c3
commit
c0eb2f0351
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user