Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2019 01:47:01 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r353080 - stable/11/contrib/ipfilter/tools
Message-ID:  <201910040147.x941l1Ao052664@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri Oct  4 01:47:00 2019
New Revision: 353080
URL: https://svnweb.freebsd.org/changeset/base/353080

Log:
  MFC r319822:
  
  Flag loadpoolfile() (ippool -f) command line syntax errors.

Modified:
  stable/11/contrib/ipfilter/tools/ippool.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/ipfilter/tools/ippool.c
==============================================================================
--- stable/11/contrib/ipfilter/tools/ippool.c	Fri Oct  4 01:45:58 2019	(r353079)
+++ stable/11/contrib/ipfilter/tools/ippool.c	Fri Oct  4 01:47:00 2019	(r353080)
@@ -374,7 +374,13 @@ loadpoolfile(argc, argv, infile)
 		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, "loadpoolfile: opts = %#x\n", opts);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910040147.x941l1Ao052664>