diff options
author | Simo Sorce <simo@redhat.com> | 2013-08-30 17:25:01 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-09-09 15:11:46 -0400 |
commit | 1c022b3556f442f57326c4a3f250128b1bd232ae (patch) | |
tree | a0f2a71092e5d46f7f5ecf897b50b5bfe2ef7255 /src/tests/krb5_child-test.c | |
parent | 84ce563e3f430eec1225a6f8493eb0a6c9a3013a (diff) | |
download | sssd-1c022b3556f442f57326c4a3f250128b1bd232ae.tar.gz sssd-1c022b3556f442f57326c4a3f250128b1bd232ae.tar.xz sssd-1c022b3556f442f57326c4a3f250128b1bd232ae.zip |
krb5: Unify function to create ccache files
Only 2 types (FILE and DIR) need to precreate files or directories
on the file system, and the 2 functions were basically identical.
Consolidate all in one common function and use that function directly
where needed instead of using indirection.
Resolves:
https://fedorahosted.org/sssd/ticket/2061
Diffstat (limited to 'src/tests/krb5_child-test.c')
-rw-r--r-- | src/tests/krb5_child-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c index dff62ab64..5ea30014f 100644 --- a/src/tests/krb5_child-test.c +++ b/src/tests/krb5_child-test.c @@ -287,9 +287,9 @@ create_dummy_req(TALLOC_CTX *mem_ctx, const char *user, DEBUG(SSSDBG_FUNC_DATA, ("ccname [%s] uid [%llu] gid [%llu]\n", kr->ccname, kr->uid, kr->gid)); - ret = kr->krb5_ctx->cc_be->create(kr->ccname, - kr->krb5_ctx->illegal_path_re, - kr->uid, kr->gid, private); + ret = sss_krb5_precreate_ccache(kr->ccname, + kr->krb5_ctx->illegal_path_re, + kr->uid, kr->gid, private); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("create_ccache_dir failed.\n")); goto fail; |