getgrgid array of pointers error etc.
gr_mem
should be a pointer to an array of pointers, where each entry is the address of a string. Currently, it is a pointer to the buffer containing the strings. Some thought needs to be given to how the array of pointers is allocated.
https://gitlab.redox-os.org/redox-os/relibc/-/blob/master/src/header/grp/mod.rs?ref_type=heads#L133
parse_group
has two variables named buf
, it looks like there is an attempt to use both the current meaning and the previous meaning.
https://gitlab.redox-os.org/redox-os/relibc/-/blob/master/src/header/grp/mod.rs?ref_type=heads#L190
The code that opens /etc/groups
is duplicated many times, maybe put it in a function?