Skip to content

Add a passwd field to Group#1338

Merged
bors[bot] merged 1 commit intonix-rust:masterfrom
blinsay:benl/group-passwords
Feb 7, 2021
Merged

Add a passwd field to Group#1338
bors[bot] merged 1 commit intonix-rust:masterfrom
blinsay:benl/group-passwords

Conversation

@blinsay
Copy link
Copy Markdown
Contributor

@blinsay blinsay commented Nov 22, 2020

Adds a passwd field to unistd::Group. The gr_passwd field exists on libc::group and wasn't exposed.

I didn't see tests for from(libc:group) for either User or Password. Let me know if there are other tests I should add!

Copy link
Copy Markdown
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

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

What systems actually use the group password? I for one have never seen it actually used.

@blinsay
Copy link
Copy Markdown
Contributor Author

blinsay commented Nov 29, 2020

I haven't actually seen it used either, but I'm working on a backend to nscd and glibc seems to expect a group password as part of the response.

Given that passwd is mentioned in the man page, is there a reason to not include it here?

@blinsay
Copy link
Copy Markdown
Contributor Author

blinsay commented Jan 16, 2021

@asomers given this any more thought?

@asomers
Copy link
Copy Markdown
Member

asomers commented Jan 31, 2021

Yes, I think it seems reasonable. But could you add a CHANGELOG entry and rebase?

@blinsay blinsay force-pushed the benl/group-passwords branch from 63da96e to 1e33e77 Compare February 7, 2021 17:46
@blinsay blinsay force-pushed the benl/group-passwords branch from 1e33e77 to 8dc757b Compare February 7, 2021 17:49
@blinsay
Copy link
Copy Markdown
Contributor Author

blinsay commented Feb 7, 2021

Done! Sorry for the delay.

Copy link
Copy Markdown
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

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

bors r+

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