diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-10 18:19:12 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-30 13:44:35 +0200 |
commit | 1987bff88e01c74d647dd2db4f541ac311537e1a (patch) | |
tree | 5b74ee7f10bc033009a1822b69010b64b249c718 /src/tools | |
parent | b36153ce4c3eeb19274ce32e82949da446184406 (diff) | |
download | sssd-1987bff88e01c74d647dd2db4f541ac311537e1a.tar.gz sssd-1987bff88e01c74d647dd2db4f541ac311537e1a.tar.bz2 sssd-1987bff88e01c74d647dd2db4f541ac311537e1a.zip |
Add utility functions for formatting fully-qualified names
Instead of using printf-like functions directly, provide two wrappers
that would encapsulate formatting the fully-qualified names. No
functional change is present in this patch.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/sss_cache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c index 9942e6a7..f888608a 100644 --- a/src/tools/sss_cache.c +++ b/src/tools/sss_cache.c @@ -221,8 +221,7 @@ static errno_t update_filter(struct cache_tool_ctx *tctx, if (parsed_domain) { if (IS_SUBDOMAIN(dinfo)) { /* Use fqdn for subdomains */ - use_name = talloc_asprintf(tmp_ctx, tctx->nctx->fq_fmt, use_name, - dinfo->name); + use_name = sss_tc_fqname(tmp_ctx, tctx->nctx, dinfo, name); if (use_name == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, ("Out of memory\n")); ret = ENOMEM; |