diff options
| author | Pavel Březina <pbrezina@redhat.com> | 2015-10-20 11:18:31 +0200 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-10-30 11:49:53 +0100 |
| commit | 20222362cf9557e0e053e5e5f3b6f07899c7bfe7 (patch) | |
| tree | 9285d6b314b2247fde8a1e075dfd4c231d11e682 /src | |
| parent | 16065cc731687eb8779d31b79436bbf79c5e3ed3 (diff) | |
sss_override: fix exporting multiple domains
There was a mistake in the code which resulted in exporting one
domain several times if multiple domain were configured.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/sss_override.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/sss_override.c b/src/tools/sss_override.c index 041c2a10..d0bf3872 100644 --- a/src/tools/sss_override.c +++ b/src/tools/sss_override.c @@ -1249,7 +1249,7 @@ static int override_user_export(struct sss_cmdline *cmdline, dom = tool_ctx->domains; do { - objs = list_user_overrides(tool_ctx, tool_ctx->domains); + objs = list_user_overrides(tool_ctx, dom); if (objs == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, "Unable to get override objects\n"); exit = EXIT_FAILURE; @@ -1454,7 +1454,7 @@ static int override_group_export(struct sss_cmdline *cmdline, dom = tool_ctx->domains; do { - objs = list_group_overrides(tool_ctx, tool_ctx->domains); + objs = list_group_overrides(tool_ctx, dom); if (objs == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, "Unable to get override objects\n"); exit = EXIT_FAILURE; |
