summaryrefslogtreecommitdiff
path: root/trust/token.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-08 18:30:16 +0200
committerStef Walter <stef@thewalter.net>2013-07-08 18:30:16 +0200
commitc0a2fe9c974b51e7495d0598a925c07744d895de (patch)
treec93a052cc070878d66cae6e6b4d86d9d9e259415 /trust/token.c
parent2c4f5ed657976d868c33f0ddf430477ee2bf0191 (diff)
downloadp11-kit-c0a2fe9c974b51e7495d0598a925c07744d895de.tar.gz
trust: Support token directory paths in user's home directory
Diffstat (limited to 'trust/token.c')
-rw-r--r--trust/token.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/token.c b/trust/token.c
index 77ff739..ca24762 100644
--- a/trust/token.c
+++ b/trust/token.c
@@ -643,7 +643,7 @@ p11_token_new (CK_SLOT_ID slot,
token->loaded = p11_dict_new (p11_dict_str_hash, p11_dict_str_equal, free, free);
return_val_if_fail (token->loaded != NULL, NULL);
- token->path = strdup (path);
+ token->path = p11_path_expand (path);
return_val_if_fail (token->path != NULL, NULL);
token->anchors = p11_path_build (token->path, "anchors", NULL);