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

Use gid_t and uid_t in passwd.h #995

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Use gid_t and uid_t in passwd.h #995

merged 1 commit into from
Dec 9, 2023

Conversation

tempoz
Copy link
Contributor

@tempoz tempoz commented Dec 9, 2023

group.gr_gid was the wrong type (int32_t when gid_t is uint32_t). Just replaced all the types for uids and gids with the appropriate uid_t or gid_t, which incidentally fixes that inconsistency.

`group.gr_gid` was the wrong type (`int32_t` when `gid_t` is `uint32_t`). Just replaced all the types for uids and gids with the appropriate `uid_t` or `gid_t`, which incidentally fixes that inconsistency.
Copy link
Owner

@jart jart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The integration tests will most likely fail on the $(THIRD_PARTY_MUSL_A_HDRS:%=o/$(MODE)/%.ok) check due to the header not including libc/call/weirdtypes.h. I'd recommend only changing gr_gid to be uint32_t. I like it that way in the mono repo. Less include complexity.

Copy link
Owner

@jart jart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind. I see passwd.h somehow already includes weirdtypes.h

@jart jart merged commit a11016e into jart:master Dec 9, 2023
5 checks passed
@tempoz tempoz deleted the patch-1 branch December 9, 2023 02:39
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