From 1987bff88e01c74d647dd2db4f541ac311537e1a Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 10 May 2013 18:19:12 +0200 Subject: 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. --- src/tools/sss_cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tools') 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; -- cgit