1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Fix parameter check broken at r350057.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2019-08-03 04:30:22 +00:00
parent 1dbf944a91
commit ea44065c1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350555

View File

@ -124,7 +124,7 @@ format(const struct cmd *f, int argc, char *argv[])
if (arg_parse(argc, argv, f))
return;
if (opt.Eflag || opt.Cflag || opt.ses != SES_NONE) {
if ((int)opt.Eflag + opt.Cflag + (opt.ses != SES_NONE) > 1) {
fprintf(stderr,
"Only one of -E, -C or -s may be specified\n");
arg_help(argc, argv, f);