From 6f191f08a947e08d5d8ff842a29ba6f4b6611603 Mon Sep 17 00:00:00 2001 From: LRN Date: Wed, 24 Oct 2012 08:56:40 +0000 Subject: [PATCH] Create directory for hostkey --- src/transport/test_plugin_transport.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 07a20adad..f0dbc411b 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c @@ -556,6 +556,15 @@ run (void *cls, char *const *args, const char *cfgfile, HOSTKEY_FILE); } + if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (keyfile)) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + _("Could not create a directory for hostkey `%s'. Exiting.\n"), + keyfile); + end_badly_now (); + return; + } + if (GNUNET_OK != GNUNET_DISK_file_copy (HOSTKEY_FILE, keyfile)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, -- 2.25.1