File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -943,12 +943,12 @@ pub fn setgid(gid: Gid) -> Result<()> {
943
943
944
944
pub fn setgroups ( groups : & [ Gid ] ) -> Result < ( ) > {
945
945
cfg_if ! {
946
- if #[ cfg( any( target_os = "macos" ,
947
- target_os = "ios" ,
946
+ if #[ cfg( any( target_os = "dragonfly" ,
948
947
target_os = "freebsd" ,
949
- target_os = "dragonfly" ,
950
- target_os = "openbsd" ,
951
- target_os = "netbsd" ) ) ] {
948
+ target_os = "ios" ,
949
+ target_os = "macos" ,
950
+ target_os = "netbsd" ,
951
+ target_os = "openbsd" ) ) ] {
952
952
type setgroups_ngroups_t = c_int;
953
953
} else {
954
954
type setgroups_ngroups_t = size_t;
@@ -960,10 +960,10 @@ pub fn setgroups(groups: &[Gid]) -> Result<()> {
960
960
Errno :: result ( res) . map ( drop)
961
961
}
962
962
963
- #[ cfg( any( target_os = "linux " , target_os = "android " , target_os = "macos " , target_os = "ios " ) ) ]
963
+ #[ cfg( any( target_os = "android " , target_os = "ios " , target_os = "linux " , target_os = "macos " ) ) ]
964
964
pub fn initgroups ( user : & CString , group : Gid ) -> Result < ( ) > {
965
965
cfg_if ! {
966
- if #[ cfg( any( target_os = "macos " , target_os = "ios " ) ) ] {
966
+ if #[ cfg( any( target_os = "ios " , target_os = "macos " ) ) ] {
967
967
type initgroups_group_t = c_int;
968
968
} else {
969
969
type initgroups_group_t = gid_t;
You can’t perform that action at this time.
0 commit comments