gengetopt's params->override option does not do what its name suggests,
see
http://www.opensubscriber.com/message/help-gengetopt@gnu.org/
10980633.html
or
http://www.mail-archive.com/help-gengetopt@gnu.org/msg00507.html
.check_ambiguity = 0,
.print_errors = 1
};
+ if (override) { /* invalidate all rsync options */
+ int i;
+
+ for (i = 0; i < conf.rsync_option_given; i++) {
+ free(conf.rsync_option_arg[i]);
+ conf.rsync_option_arg[i] = NULL;
+ }
+ conf.rsync_option_given = 0;
+ }
cmdline_parser_config_file(config_file, &conf, ¶ms);
}
ret = check_config();