mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-17 20:26:18 +00:00
chroot: add OpenBSD support for set_groups function
This commit is contained in:
parent
181cfc885b
commit
d239b2f47b
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ fn set_main_group(group: &str) -> UResult<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(any(target_vendor = "apple", target_os = "freebsd"))]
|
||||
#[cfg(any(target_vendor = "apple", target_os = "freebsd", target_os = "openbsd"))]
|
||||
fn set_groups(groups: &[libc::gid_t]) -> libc::c_int {
|
||||
unsafe { setgroups(groups.len() as libc::c_int, groups.as_ptr()) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue