diff options
author | LRN <lrn1986@gmail.com> | 2012-10-24 08:56:40 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2012-10-24 08:56:40 +0000 |
commit | 6f191f08a947e08d5d8ff842a29ba6f4b6611603 (patch) | |
tree | 70f242b708ae58671e6c116860fb0241779f7e25 /src/transport/test_plugin_transport.c | |
parent | e6f9009c226bef291fd214a9a8fc6d0641465620 (diff) | |
download | gnunet-6f191f08a947e08d5d8ff842a29ba6f4b6611603.tar.gz gnunet-6f191f08a947e08d5d8ff842a29ba6f4b6611603.zip |
Create directory for hostkey
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 9 |
1 files changed, 9 insertions, 0 deletions
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, | |||
556 | HOSTKEY_FILE); | 556 | HOSTKEY_FILE); |
557 | } | 557 | } |
558 | 558 | ||
559 | if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (keyfile)) | ||
560 | { | ||
561 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
562 | _("Could not create a directory for hostkey `%s'. Exiting.\n"), | ||
563 | keyfile); | ||
564 | end_badly_now (); | ||
565 | return; | ||
566 | } | ||
567 | |||
559 | if (GNUNET_OK != GNUNET_DISK_file_copy (HOSTKEY_FILE, keyfile)) | 568 | if (GNUNET_OK != GNUNET_DISK_file_copy (HOSTKEY_FILE, keyfile)) |
560 | { | 569 | { |
561 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 570 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |