mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +00:00
Call svn_config_ensure.
This is needed to allow caching of authentication credentials, which Subversion can do in a more secure fashion than keeping them in nmap-update.conf.
This commit is contained in:
@@ -803,6 +803,11 @@ static svn_error_t *checkout_svn(const char *url, const char *path)
|
||||
if (err != NULL)
|
||||
fatal_err_svn(err);
|
||||
|
||||
/* The creation of this directory is needed to cache credentials. */
|
||||
err = svn_config_ensure(NULL, pool);
|
||||
if (err != NULL)
|
||||
fatal_err_svn(err);
|
||||
|
||||
err = svn_config_get_config(&ctx->config, NULL, pool);
|
||||
if (err != NULL)
|
||||
fatal_err_svn(err);
|
||||
|
||||
Reference in New Issue
Block a user