From d7b5cbb6ac916fbdd2fdcae242250771a2b93523 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 --- user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user b/user index 8e8278d012c..993885d7b39 100755 --- a/user +++ b/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