bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a few minor changes: id, setuidgid, new module: mgetgroups


From: Jim Meyering
Subject: a few minor changes: id, setuidgid, new module: mgetgroups
Date: Sat, 07 Jul 2007 02:11:03 +0200

I've just pushed a few changes:

  http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=summary


2007-07-05  Jim Meyering  <address@hidden>

        setuidgid: set all groups, not just the primary one.
        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.

        * bootstrap: Merge in changes from gnulib.

        * src/id.c: Include "getugroups.h" rather than declaring manually.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]