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

Remove redundant code #4

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

cwendling
Copy link
Member

Also fixes leaking some memory.

This was introduced in dd166d8, probably a mistake.

Also fixes leaking some memory.
@sthibaul sthibaul merged commit c45241f into book-readers:main Sep 13, 2023
1 check passed
@cwendling cwendling deleted the redundant-leak branch October 3, 2023 08:31
sthibaul added a commit that referenced this pull request Feb 11, 2024
cuserid() is limited to L_cuserid characters, which is 9.  This means that
users with a longer login were never seen as belonging to the group.

Let us just replace with using getgroups, which allows
- to actually check the current allowed groups,
- to compare gids, which don't pose length limitations.

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

Successfully merging this pull request may close these issues.

2 participants