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/responder/autofs/autofssrv_cmd.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/responder/autofs/autofssrv_cmd.c')
-rw-r--r-- | src/responder/autofs/autofssrv_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/responder/autofs/autofssrv_cmd.c b/src/responder/autofs/autofssrv_cmd.c index 27b6617c2..82f2f8647 100644 --- a/src/responder/autofs/autofssrv_cmd.c +++ b/src/responder/autofs/autofssrv_cmd.c @@ -661,7 +661,7 @@ lookup_automntmap_step(struct setautomntent_lookup_ctx *lookup_ctx) if (!dctx->check_provider) { if (dctx->cmd_ctx->check_next) { DEBUG(SSSDBG_TRACE_INTERNAL, "Moving on to next domain\n"); - dom = get_next_domain(dom, false); + dom = get_next_domain(dom, 0); continue; } else break; @@ -868,8 +868,8 @@ static void lookup_automntmap_cache_updated(uint16_t err_maj, uint32_t err_min, "Will try to return what we have in cache\n", (unsigned int)err_maj, (unsigned int)err_min, err_msg); /* Loop to the next domain if possible */ - if (dctx->cmd_ctx->check_next && get_next_domain(dctx->domain, false)) { - dctx->domain = get_next_domain(dctx->domain, false); + if (dctx->cmd_ctx->check_next && get_next_domain(dctx->domain, 0)) { + dctx->domain = get_next_domain(dctx->domain, 0); dctx->check_provider = NEED_CHECK_PROVIDER(dctx->domain->provider); } } |