Date: Mon, 19 Jun 2017 12:33:22 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r320095 - head/contrib/ipfilter/tools Message-ID: <201706191233.v5JCXMlJ029604@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Mon Jun 19 12:33:22 2017 New Revision: 320095 URL: https://svnweb.freebsd.org/changeset/base/320095 Log: Flag poolcommand() (ippool -A and ippool -R) command line syntax errors. Modified: head/contrib/ipfilter/tools/ippool.c Modified: head/contrib/ipfilter/tools/ippool.c ============================================================================== --- head/contrib/ipfilter/tools/ippool.c Mon Jun 19 07:15:47 2017 (r320094) +++ head/contrib/ipfilter/tools/ippool.c Mon Jun 19 12:33:22 2017 (r320095) @@ -297,7 +297,13 @@ poolcommand(remove, argc, argv) case 'v' : opts |= OPT_VERBOSE; break; + default : + usage(argv[0]); + break; /* keep compiler happy */ } + + if (argc - 1 - optind > 0) + usage(argv[0]); if (opts & OPT_DEBUG) fprintf(stderr, "poolcommand: opts = %#x\n", opts);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706191233.v5JCXMlJ029604>