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/providers/krb5/krb5_auth.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/providers/krb5/krb5_auth.c')
-rw-r--r-- | src/providers/krb5/krb5_auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c index 1ea179be3..d2c53f98c 100644 --- a/src/providers/krb5/krb5_auth.c +++ b/src/providers/krb5/krb5_auth.c @@ -333,9 +333,9 @@ static errno_t krb5_auth_prepare_ccache_name(struct krb5child_req *kr, return EINVAL; } - ret = kr->cc_be->create(kr->ccname, - kr->krb5_ctx->illegal_path_re, - kr->uid, kr->gid, private_path); + ret = sss_krb5_precreate_ccache(kr->ccname, + kr->krb5_ctx->illegal_path_re, + kr->uid, kr->gid, private_path); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("ccache creation failed.\n")); return ret; |