From 9ca0071db0e226e4e65b2a80fdeddd5048ca8990 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Mon, 21 Jul 2014 08:01:58 +0100 Subject: UTIL: rename find_subdomain_by_sid The function was named "find_subdomain" yet it could find both main domain and subdomain. sed 's/find_subdomain_by_sid/find_domain_by_sid/' -i `find . -name "*.[ch]"` Reviewed-by: Jakub Hrozek --- src/providers/simple/simple_access_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers/simple') diff --git a/src/providers/simple/simple_access_check.c b/src/providers/simple/simple_access_check.c index 4b4400f6..1fcff445 100644 --- a/src/providers/simple/simple_access_check.c +++ b/src/providers/simple/simple_access_check.c @@ -611,7 +611,7 @@ simple_check_process_group(struct simple_check_groups_state *state, /* We will look it up in main domain. */ domain = state->ctx->domain; } else { - domain = find_subdomain_by_sid(state->ctx->domain, group_sid); + domain = find_domain_by_sid(state->ctx->domain, group_sid); if (domain == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, "There is no domain information for " "SID %s\n", group_sid); -- cgit