mkdir on tofu file

This commit is contained in:
Christian Grothoff 2021-01-15 15:28:23 +01:00
parent 7c8d8b7917
commit aab39b3dc9
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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,