From: LRN Date: Wed, 24 Oct 2012 08:56:40 +0000 (+0000) Subject: Create directory for hostkey X-Git-Tag: initial-import-from-subversion-38251~11235 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6f191f08a947e08d5d8ff842a29ba6f4b6611603;p=oweals%2Fgnunet.git Create directory for hostkey --- 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,