[SSSD] [PATCH] Fix typo in sysdb_get_direct_parents

Jakub Hrozek jhrozek at redhat.com
Tue Oct 4 11:00:26 UTC 2011


A stupid typo in one of the recent multiname patches made initgroups
with nested groups fail..I could swear I have tested that but apparently not.
-------------- next part --------------
From 5c5760a212593035182ffcff6284c3930b9262f5 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Tue, 4 Oct 2011 12:57:57 +0200
Subject: [PATCH] Fix typo in sysdb_get_direct_parents

---
 src/db/sysdb_search.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c
index 3a310b7..b7f6a19 100644
--- a/src/db/sysdb_search.c
+++ b/src/db/sysdb_search.c
@@ -868,7 +868,7 @@ errno_t sysdb_get_direct_parents(TALLOC_CTX *mem_ctx,
 
     if (mtype == SYSDB_MEMBER_USER) {
         dn = sysdb_user_strdn(tmp_ctx, dom->name, name);
-    } else if (mtype == SYSDB_MEMBER_USER) {
+    } else if (mtype == SYSDB_MEMBER_GROUP) {
         dn = sysdb_group_strdn(tmp_ctx, dom->name, name);
     } else {
         DEBUG(1, ("Unknown member type\n"));
-- 
1.7.6.4



More information about the sssd-devel mailing list