From e97916cfc1bffa998c578a430f6478e4299516c9 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 24 Oct 2012 20:39:42 -0700 Subject: [PATCH] Skip check of primary group when checking other group membership --- library/user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/user b/library/user index 8e8278d012..993885d7b3 100755 --- a/library/user +++ b/library/user @@ -314,7 +314,7 @@ def user_group_membership(user): groups = [] info = get_pwd_info(user) for group in grp.getgrall(): - if user in group[3] and info[3] != group[2]: + if user in group[3]: groups.append(group[0]) return groups