File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
6
6
## [ Unreleased] - ReleaseDate
7
7
### Added
8
+
9
+ - Added a ` passwd ` field to ` Group ` (#[ 1338] ( https://github.com/nix-rust/nix/pull/1338 ) )
8
10
- Added ` mremap ` (#[ 1306] ( https://github.com/nix-rust/nix/pull/1306 ) )
9
11
- Added ` personality ` (#[ 1331] ( https://github.com/nix-rust/nix/pull/1331 ) )
10
12
- Added limited Fuchsia support (#[ 1285] ( https://github.com/nix-rust/nix/pull/1285 ) )
Original file line number Diff line number Diff line change @@ -2671,6 +2671,8 @@ impl User {
2671
2671
pub struct Group {
2672
2672
/// Group name
2673
2673
pub name : String ,
2674
+ /// Group password
2675
+ pub passwd : CString ,
2674
2676
/// Group ID
2675
2677
pub gid : Gid ,
2676
2678
/// List of Group members
@@ -2683,6 +2685,7 @@ impl From<&libc::group> for Group {
2683
2685
unsafe {
2684
2686
Group {
2685
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 ( ) ,
2686
2689
gid : Gid :: from_raw ( ( * gr) . gr_gid ) ,
2687
2690
mem : Group :: members ( ( * gr) . gr_mem )
2688
2691
}
You can’t perform that action at this time.
0 commit comments