1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Add a "repo" configuration file option, the same as --repo.

This commit is contained in:
david
2012-01-01 23:17:09 +00:00
parent c5422af0c3
commit f7aa1eea8a

View File

@@ -567,6 +567,13 @@ static int read_config_file(const char *conf_filename)
free(options.password);
}
options.password = safe_strdup(entry.value);
} else if (streq(entry.key, "repo")) {
if (options.svn_repo != NULL) {
fprintf(stderr, "Warning: %s:%lu: duplicate \"%s\".\n",
conf_filename, cp.lineno, entry.key);
free(options.svn_repo);
}
options.svn_repo = safe_strdup(entry.value);
} else {
fprintf(stderr, "Warning: %s:%lu: unknown key \"%s\".\n",
conf_filename, cp.lineno, entry.key);