]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/shadow/grp/: agetgroups(): Add function
authorAlejandro Colomar <alx@kernel.org>
Tue, 19 Nov 2024 00:20:56 +0000 (01:20 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 24 Jan 2025 13:58:13 +0000 (07:58 -0600)
commit05322ed89a1c46f461dffe11395d01fe950f6470
treee95c78e2e1543a3454102d608a4538f4480007de
parente083b380188ca361d4d965db36744e2328071c4e
lib/shadow/grp/: agetgroups(): Add function

This encapsulates the logic for calling getgroups(3), which requires two
calls plus a malloc(3) call to do it correctly.

Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/Makefile.am
lib/shadow/grp/agetgroups.c [new file with mode: 0644]
lib/shadow/grp/agetgroups.h [new file with mode: 0644]