Refusing to set many time a label is important for
security. If a label is set more than one time, wich
label is to use? Wich is the good?
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
continue;
}
+ if (labelset->isset) {
+ fprintf(stderr, "%s: %s: option set many times.\n",
+ basename(argv[0]), options[options_map[c]].name);
+ exit(1);
+ }
/* greedy on optional arguments */
if (optarg == NULL && argv[optind] != NULL && argv[optind][0] != '-') {
optarg = argv[optind++];