svn commit: r319794 - head/contrib/ipfilter/tools

Cy Schubert cy at FreeBSD.org
Sat Jun 10 16:42:40 UTC 2017


Author: cy
Date: Sat Jun 10 16:42:39 2017
New Revision: 319794
URL: https://svnweb.freebsd.org/changeset/base/319794

Log:
  Flag poollist() (ippool -l) command line syntax errors.

Modified:
  head/contrib/ipfilter/tools/ippool.c

Modified: head/contrib/ipfilter/tools/ippool.c
==============================================================================
--- head/contrib/ipfilter/tools/ippool.c	Sat Jun 10 16:11:39 2017	(r319793)
+++ head/contrib/ipfilter/tools/ippool.c	Sat Jun 10 16:42:39 2017	(r319794)
@@ -700,7 +700,13 @@ poollist(argc, argv)
 		case 'v' :
 			opts |= OPT_VERBOSE;
 			break;
+		default :
+			usage(argv[0]);
+			break;		/* keep compiler happy */
 		}
+
+	if (argc - optind > 0)
+		usage(argv[0]);
 
 	if (opts & OPT_DEBUG)
 		fprintf(stderr, "poollist: opts = %#x\n", opts);


More information about the svn-src-head mailing list