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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user