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 2017-06-21 12:19:05 +00:00
parent a3e5966ed5
commit 38fb2e4725

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;