Function uu_chown::entries::get_groups

source ·
pub fn get_groups() -> Result<Vec<u32>, Error>
Expand description

From: <https://man7.org/linux/man-pages/man2/getgroups.2.html>

getgroups() returns the supplementary group IDs of the calling process in list. If size is zero, list is not modified, but the total number of supplementary group IDs for the process is returned. This allows the caller to determine the size of a dynamically allocated list to be used in a further call to getgroups().