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:
parent
a4a2976d8a
commit
3f6a9d3760
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320187
@ -298,7 +298,10 @@ poolcommand(remove, argc, argv)
|
|||||||
opts |= OPT_NORESOLVE;
|
opts |= OPT_NORESOLVE;
|
||||||
break;
|
break;
|
||||||
case 'S' :
|
case 'S' :
|
||||||
iph.iph_seed = atoi(optarg);
|
if (remove == 0)
|
||||||
|
iph.iph_seed = atoi(optarg);
|
||||||
|
else
|
||||||
|
usage(argv[0]);
|
||||||
break;
|
break;
|
||||||
case 'v' :
|
case 'v' :
|
||||||
opts |= OPT_VERBOSE;
|
opts |= OPT_VERBOSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user