diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-01-15 15:28:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-01-15 15:28:23 +0100 |
commit | aab39b3dc97a23bc01b0007b5ac7946d7e2f127b (patch) | |
tree | efad2fcdd7eca76d58d715ebefb22d8151b3d95b /src/exchange-tools/taler-exchange-offline.c | |
parent | 7c8d8b79178403a8c43ee4cc82b421d8fe978246 (diff) |
mkdir on tofu file
Diffstat (limited to 'src/exchange-tools/taler-exchange-offline.c')
-rw-r--r-- | src/exchange-tools/taler-exchange-offline.c | 9 |
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, |