Skip to content

Commit 25512e9

Browse files
committed
unistd::initgroups: Now available on all platforms
1 parent 05edb2f commit 25512e9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/unistd.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,8 +995,6 @@ pub fn setgroups(groups: &[Gid]) -> Result<()> {
995995
/// of. The additional group `group` is also added to the list.
996996
///
997997
/// [Further reading](http://man7.org/linux/man-pages/man3/initgroups.3.html)
998-
// TODO: Get initgroups binding added for FreeBSD in libc
999-
#[cfg(any(target_os = "android", target_os = "ios", target_os = "linux", target_os = "macos"))]
1000998
pub fn initgroups(user: &CString, group: Gid) -> Result<()> {
1001999
cfg_if! {
10021000
if #[cfg(any(target_os = "ios", target_os = "macos"))] {

0 commit comments

Comments
 (0)