diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-08 18:38:38 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-08 18:38:38 +0200 |
commit | dcca67d72544e394f43a8c62840692c85d5b5b29 (patch) | |
tree | 3da7943c17378457d40e10a9d72a96f725221922 /trust/session.c | |
parent | 3318c443b7a3660f0aee80cfa0d5e915d3a21734 (diff) | |
download | p11-kit-dcca67d72544e394f43a8c62840692c85d5b5b29.tar.gz |
trust: Fix various issues writing objects in trust token
* Create directory before trying to write files to it
* Handle write failures appropriately
Refactor how we build and store objects in the index to handle
the above cases properly.
Diffstat (limited to 'trust/session.c')
-rw-r--r-- | trust/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/session.c b/trust/session.c index b04b8bf..76a9acf 100644 --- a/trust/session.c +++ b/trust/session.c @@ -61,7 +61,7 @@ p11_session_new (p11_token *token) session->builder = p11_builder_new (P11_BUILDER_FLAG_NONE); return_val_if_fail (session->builder, NULL); - session->index = p11_index_new (p11_builder_build, + session->index = p11_index_new (p11_builder_build, NULL, p11_builder_changed, session->builder); return_val_if_fail (session->index != NULL, NULL); |