Flag poolcommand() (ippool -A and ippool -R) command line syntax errors.
This commit is contained in:
parent
df9abd97ac
commit
eeafb4bc10
@ -297,8 +297,14 @@ poolcommand(remove, argc, argv)
|
||||
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, "poolcommand: opts = %#x\n", opts);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user