uncomment for upstream compatibility

This commit is contained in:
Motiejus Jakštys 2022-07-15 11:33:27 +03:00
parent d306821b53
commit a5f50fd63e

View File

@ -173,8 +173,8 @@ pub fn init(
// nss implementation does.
// - Uncomment this code to behave how Classics behave.
// - Leave commented to be compatible with Ours Truly NSS.
//if (users.items(.gid)[user_idx] == groups.items(.gid)[i])
// continue;
if (users.items(.gid)[user_idx] == groups.items(.gid)[i])
continue;
members.len += 1;
members[members.len - 1] = user_idx;
try user2groups[user_idx].append(allocator, @intCast(u32, i));