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).
This commit is contained in:
Cy Schubert 2017-06-21 12:19:05 +00:00
parent a4a2976d8a
commit 3f6a9d3760
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320187

View File

@ -298,7 +298,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;