diff options
author | Michal Židek <mzidek@redhat.com> | 2015-09-09 14:37:48 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-10-23 10:32:23 +0200 |
commit | 877b92e80bde510d5cd9f03dbf01e2bcf73ab072 (patch) | |
tree | d865b106f7d1cf9296650b4e4e4f677d56a26f89 /src/tools/sss_cache.c | |
parent | 10c07e188323a2f9824b5e34379f3b1a9b37759e (diff) | |
download | sssd-877b92e80bde510d5cd9f03dbf01e2bcf73ab072.tar.gz sssd-877b92e80bde510d5cd9f03dbf01e2bcf73ab072.tar.xz sssd-877b92e80bde510d5cd9f03dbf01e2bcf73ab072.zip |
util: Update get_next_domain's interface
Update get next domain to be able to
include disbled domains and change the
interface to accept flags instead of
multiple booleans.
Ticket:
https://fedorahosted.org/sssd/ticket/2673
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tools/sss_cache.c')
-rw-r--r-- | src/tools/sss_cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c index c9bf24914..88895e8de 100644 --- a/src/tools/sss_cache.c +++ b/src/tools/sss_cache.c @@ -128,7 +128,8 @@ int main(int argc, const char *argv[]) goto done; } - for (dinfo = tctx->domains; dinfo; dinfo = get_next_domain(dinfo, true)) { + for (dinfo = tctx->domains; dinfo; + dinfo = get_next_domain(dinfo, SSS_GND_DESCEND)) { if (!IS_SUBDOMAIN(dinfo)) { /* Update list of subdomains for this domain */ ret = sysdb_update_subdomains(dinfo); @@ -555,7 +556,7 @@ errno_t init_domains(struct cache_tool_ctx *ctx, const char *domain) } } - for (dinfo = ctx->domains; dinfo; dinfo = get_next_domain(dinfo, false)) { + for (dinfo = ctx->domains; dinfo; dinfo = get_next_domain(dinfo, 0)) { ret = sss_names_init(ctx, ctx->confdb, dinfo->name, &dinfo->names); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "sss_names_init() failed\n"); |