Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users who have both primary and secondary membership are printed twice #10

Open
gebn opened this issue May 9, 2018 · 0 comments
Open
Labels

Comments

@gebn
Copy link
Owner

gebn commented May 9, 2018

First, members scans passwd looking for primary members, and prints them. Then it retrieves the group from groups and prints all secondary members.

If a user has a given group as their primary group, and are also secondary members of the same group, their username will be printed twice.

Is this a bug or a feature? I'd argue a bug: being a member twice makes no difference to how membership functions. However, it is a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant