mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11: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);
|
free(options.password);
|
||||||
}
|
}
|
||||||
options.password = safe_strdup(entry.value);
|
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 {
|
} else {
|
||||||
fprintf(stderr, "Warning: %s:%lu: unknown key \"%s\".\n",
|
fprintf(stderr, "Warning: %s:%lu: unknown key \"%s\".\n",
|
||||||
conf_filename, cp.lineno, entry.key);
|
conf_filename, cp.lineno, entry.key);
|
||||||
|
|||||||
Reference in New Issue
Block a user