Date: Tue, 20 Jun 2017 12:31:58 +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: r320143 - head/contrib/ipfilter/tools Message-ID: <201706201231.v5KCVw9H023347@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Tue Jun 20 12:31:58 2017 New Revision: 320143 URL: https://svnweb.freebsd.org/changeset/base/320143 Log: Flag poolnodecommand() (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 Tue Jun 20 11:11:42 2017 (r320142) +++ head/contrib/ipfilter/tools/ippool.c Tue Jun 20 12:31:58 2017 (r320143) @@ -210,7 +210,13 @@ poolnodecommand(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 (argv[optind] != NULL && ipset == 0) { if (setnodeaddr(type, role, ptr, argv[optind]) == 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706201231.v5KCVw9H023347>