summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-15 15:28:23 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-15 15:28:23 +0100
commitaab39b3dc97a23bc01b0007b5ac7946d7e2f127b (patch)
treeefad2fcdd7eca76d58d715ebefb22d8151b3d95b
parent7c8d8b79178403a8c43ee4cc82b421d8fe978246 (diff)
downloadexchange-aab39b3dc97a23bc01b0007b5ac7946d7e2f127b.tar.gz
exchange-aab39b3dc97a23bc01b0007b5ac7946d7e2f127b.tar.bz2
exchange-aab39b3dc97a23bc01b0007b5ac7946d7e2f127b.zip
mkdir on tofu file
-rw-r--r--src/exchange-tools/taler-exchange-offline.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c
index 83d9e63ca..59e0b0a40 100644
--- a/src/exchange-tools/taler-exchange-offline.c
+++ b/src/exchange-tools/taler-exchange-offline.c
@@ -2429,6 +2429,15 @@ tofu_check (const struct TALER_SecurityModulePublicKeyP secm[2])
}
}
}
+ if (GNUNET_OK !=
+ GNUNET_DISK_directory_create_for_file (fn))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed create directory to store key material in file `%s'\n",
+ fn);
+ GNUNET_free (fn);
+ return GNUNET_SYSERR;
+ }
/* persist keys for future runs */
if (GNUNET_OK !=
GNUNET_DISK_fn_write (fn,