1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

Fix build when not(feature = "process")

This commit is contained in:
Jeong YunWon 2021-06-09 23:51:04 +09:00
parent 4471335609
commit f40f9fbf91

View file

@ -94,6 +94,7 @@ pub fn get_groups() -> IOResult<Vec<gid_t>> {
/// groups is the same (in the mathematical sense of ``set''). (The
/// history of a process and its parents could affect the details of
/// the result.)
#[cfg(all(unix, feature = "process"))]
pub fn get_groups_gnu(arg_id: Option<u32>) -> IOResult<Vec<gid_t>> {
let mut groups = get_groups()?;
let egid = arg_id.unwrap_or_else(crate::features::process::getegid);