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 e7c7021 commit 1e33e77Copy full SHA for 1e33e77
src/unistd.rs
@@ -2671,6 +2671,8 @@ impl User {
2671
pub struct Group {
2672
/// Group name
2673
pub name: String,
2674
+ /// Group password
2675
+ pub passwd: CString,
2676
/// Group ID
2677
pub gid: Gid,
2678
/// List of Group members
@@ -2683,6 +2685,7 @@ impl From<&libc::group> for Group {
2683
2685
unsafe {
2684
2686
Group {
2687
name: CStr::from_ptr((*gr).gr_name).to_string_lossy().into_owned(),
2688
+ passwd: CString::new(CStr::from_ptr((*gr).gr_passwd).to_bytes()).unwrap(),
2689
gid: Gid::from_raw((*gr).gr_gid),
2690
mem: Group::members((*gr).gr_mem)
2691
}
0 commit comments