exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit aab39b3dc97a23bc01b0007b5ac7946d7e2f127b
parent 7c8d8b79178403a8c43ee4cc82b421d8fe978246
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 15 Jan 2021 15:28:23 +0100

mkdir on tofu file

Diffstat:
Msrc/exchange-tools/taler-exchange-offline.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git 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,