From c37d7d6d280473069027f2de776156e81f9c98f3 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 23 Dec 2011 01:27:53 +0000 Subject: [PATCH] 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. --- nmap-update/nmap-update.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nmap-update/nmap-update.c b/nmap-update/nmap-update.c index b390bb836..85da9090c 100644 --- a/nmap-update/nmap-update.c +++ b/nmap-update/nmap-update.c @@ -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);