mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Add a "repo" configuration file option, the same as --repo.
This commit is contained in:
parent
c5422af0c3
commit
f7aa1eea8a
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue