svn commit: r353087 - stable/11/contrib/ipfilter/tools

Cy Schubert cy at FreeBSD.org
Fri Oct 4 02:02:13 UTC 2019


Author: cy
Date: Fri Oct  4 02:02:12 2019
New Revision: 353087
URL: https://svnweb.freebsd.org/changeset/base/353087

Log:
  MFC r320187:
  
  Fix -S handling within poolcommand(). Specifying a seed (-S) is only
  valid when adding a pool (ippool -A), not when removing a pool
  (ippool -R). It is a command line syntax error if specifying a seed (-S)
  is specified when emoving a pool (-R).

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 02:01:23 2019	(r353086)
+++ stable/11/contrib/ipfilter/tools/ippool.c	Fri Oct  4 02:02:12 2019	(r353087)
@@ -292,7 +292,10 @@ poolcommand(remove, argc, argv)
 			opts |= OPT_NORESOLVE;
 			break;
 		case 'S' :
-			iph.iph_seed = atoi(optarg);
+			if (remove == 0)
+				iph.iph_seed = atoi(optarg);
+			else
+				usage(argv[0]);
 			break;
 		case 'v' :
 			opts |= OPT_VERBOSE;


More information about the svn-src-stable mailing list