File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1150,7 +1150,7 @@ pub fn setgroups(groups: &[Gid]) -> Result<()> {
1150
1150
/// and `setgroups()`. Additionally, while some implementations will return a
1151
1151
/// partial list of groups when `NGROUPS_MAX` is exceeded, this implementation
1152
1152
/// will only ever return the complete list or else an error.
1153
- pub fn getgrouplist ( user : & CString , group : Gid ) -> Result < Vec < Gid > > {
1153
+ pub fn getgrouplist ( user : & CStr , group : Gid ) -> Result < Vec < Gid > > {
1154
1154
let ngroups_max = match sysconf ( SysconfVar :: NGROUPS_MAX ) {
1155
1155
Ok ( Some ( n) ) => n as c_int ,
1156
1156
Ok ( None ) | Err ( _) => <c_int >:: max_value ( ) ,
@@ -1220,7 +1220,7 @@ pub fn getgrouplist(user: &CString, group: Gid) -> Result<Vec<Gid>> {
1220
1220
/// setgid(gid)?;
1221
1221
/// setuid(uid)?;
1222
1222
/// ```
1223
- pub fn initgroups ( user : & CString , group : Gid ) -> Result < ( ) > {
1223
+ pub fn initgroups ( user : & CStr , group : Gid ) -> Result < ( ) > {
1224
1224
cfg_if ! {
1225
1225
if #[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ] {
1226
1226
type initgroups_group_t = c_int;
You can’t perform that action at this time.
0 commit comments