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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245345
@ -216,8 +216,8 @@ main(int argc, char *argv[])
|
|||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
||||||
/* We require that either 0 or 1 mode flags be set. */
|
/* We require that either 0 or 1 mode flags be set. */
|
||||||
tmp = bflag + cflag + eflag + fflag + (kflag ? 1 : 0) + lflag + sflag +
|
tmp = bflag + cflag + eflag + fflag + iflag + jflag + (kflag ? 1 : 0) +
|
||||||
tflag + vflag + xflag;
|
lflag + sflag + tflag + vflag + xflag;
|
||||||
if (!(tmp == 0 || tmp == 1))
|
if (!(tmp == 0 || tmp == 1))
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user