mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-21 06:42:02 +02:00
I wanted to use the xgetgroups function from id.c, so factored it out and made it into a non-exiting function (hence the "m" prefix rather than "x"). * src/setuidgid.c (main): Use mgetgroups. Include "mgetgroups.h". * src/id.c (xgetgroups): Remove function. Include "mgetgroups.h". (print_group_list): Use mgetgroups, not xgetgroups. * gl/modules/mgetgroups: New module. * gl/lib/mgetgroups.c: New file. mgetgroups is derived from id.c's xgetgroups function. * bootstrap.conf (gnulib_modules): Add mgetgroups. * gl/m4/mgetgroups.m4: New file. * gl/lib/mgetgroups.h: New file.
26 lines
254 B
Plaintext
26 lines
254 B
Plaintext
Description:
|
|
Return the group IDs of a user in malloc'd storage.
|
|
|
|
Files:
|
|
lib/mgetgroups.c
|
|
lib/mgetgroups.h
|
|
m4/mgetgroups.m4
|
|
|
|
Depends-on:
|
|
free
|
|
getugroups
|
|
xalloc
|
|
|
|
configure.ac:
|
|
gl_MGETGROUPS
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
|
|
License:
|
|
LGPL
|
|
|
|
Maintainer:
|
|
Jim Meyering
|