<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/group-list.c, branch v7.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v7.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-01-16T11:06:09Z</updated>
<entry>
<title>simplify mgetgroups() and avoid -Wsign-compare warnings</title>
<updated>2009-01-16T11:06:09Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-01-14T19:17:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=46d6df933ec6171fcfa0220dfb8f18f68293797b'/>
<id>urn:sha1:46d6df933ec6171fcfa0220dfb8f18f68293797b</id>
<content type='text'>
* gl/lib/mgetgroups.c: Avoid -Wsign-compare warning by using unsigned
types for the parameters of the new function realloc_groupbuf().
mgetgroups() was refactored to use this function rather than
explicitly allocating and copying from automatic storage itself.
* src/group-list.c: Use int rather than size_t as variable is
used in signed comparisons.
* src/id.c: ditto.
</content>
</entry>
<entry>
<title>group-list: avoid compiler warning</title>
<updated>2008-10-24T17:44:48Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2008-10-24T17:42:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b705e9a9e71546f3da2d3f5f966363e62b74d057'/>
<id>urn:sha1:b705e9a9e71546f3da2d3f5f966363e62b74d057</id>
<content type='text'>
* src/group-list.c (print_group_list) [!HAVE_GETGROUPS]: Always
return value.
</content>
</entry>
<entry>
<title>Include &lt;getopt.h&gt; only if used.</title>
<updated>2008-03-16T18:04:29Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-03-15T16:50:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=12ff1eb9b91f795b9f3b930234e1702d9dfc3943'/>
<id>urn:sha1:12ff1eb9b91f795b9f3b930234e1702d9dfc3943</id>
<content type='text'>
* src/group-list.c: Don't include &lt;getopt.h&gt;.
* src/printf.c: Likewise.
</content>
</entry>
<entry>
<title>groups: don't test printf and putchar calls for failure</title>
<updated>2008-02-14T10:31:57Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-01-27T23:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cc8b73b1d9cb63c89a76db8ece8a699fb98fff1a'/>
<id>urn:sha1:cc8b73b1d9cb63c89a76db8ece8a699fb98fff1a</id>
<content type='text'>
They are unnecessary, since we use gnulib's closeout module.
* src/group-list.c (print_group): Remove explicit error tests.
* src/groups.c (main): Likewise.
(write_error): Remove function.
</content>
</entry>
<entry>
<title>Replace groups.sh with groups.c.</title>
<updated>2008-02-13T13:37:22Z</updated>
<author>
<name>James Youngman</name>
<email>jay@gnu.org</email>
</author>
<published>2008-01-25T16:05:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=167b8025aca487de001da2448c1aebc2747bc1d3'/>
<id>urn:sha1:167b8025aca487de001da2448c1aebc2747bc1d3</id>
<content type='text'>
* src/groups.c (main): New file, replacing groups.sh.
* src/group-list.c, src/group-list.h: New files, factored out of id.c,
implementing the functionality that "id" and "groups" have in common.
* src/id.c (print_full_info): Avoid a segfault when trying to print
an error message if getgroups fails.
(print_group_list): Move to group-list.c.
(print_group): Likewise.
* man/Makefile.am: When building groups.1, obtain the help text
from src/groups.c, not src/groups.sh.
(noinst_HEADERS): Add group-list.h.
(group): Remove rule.
(dist_man_MANS): Remove groups.1.
* doc/coreutils.texi (groups: Print group names a user is in):
Explain why "groups" and "groups $(id -un)" give different results
in existing login sessions after you change the group database.
(id: Print user identity): Likewise for "id".
* po/POTFILES.in: Add src/group-list.c and src/groups.c.
* NEWS: mention this.
* AUTHORS: Update.
</content>
</entry>
</feed>
