We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1794a47 commit 63da96eCopy full SHA for 63da96e
src/unistd.rs
@@ -2653,6 +2653,8 @@ impl User {
2653
pub struct Group {
2654
/// Group name
2655
pub name: String,
2656
+ /// Group password
2657
+ pub passwd: CString,
2658
/// Group ID
2659
pub gid: Gid,
2660
/// List of Group members
@@ -2665,6 +2667,7 @@ impl From<&libc::group> for Group {
2665
2667
unsafe {
2666
2668
Group {
2669
name: CStr::from_ptr((*gr).gr_name).to_string_lossy().into_owned(),
2670
+ passwd: CString::new(CStr::from_ptr((*gr).gr_passwd).to_bytes()).unwrap(),
2671
gid: Gid::from_raw((*gr).gr_gid),
2672
mem: Group::members((*gr).gr_mem)
2673
}
0 commit comments