<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/gen/initgroups.c, branch release/8.1.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.1.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.1.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2010-07-17T05:41:01Z</updated>
<entry>
<title>Copy releng/8.1 to release/8.1.0 for 8.1-RELEASE.</title>
<updated>2010-07-17T05:41:01Z</updated>
<author>
<name>Ken Smith</name>
<email>kensmith@FreeBSD.org</email>
</author>
<published>2010-07-17T05:41:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=90d6fa76a8141fc596ad376ecd86a8a493836298'/>
<id>urn:sha1:90d6fa76a8141fc596ad376ecd86a8a493836298</id>
<content type='text'>
Approved by:	re (implicit)

This commit was manufactured to restore the state of the 8.1-RELEASE image.
</content>
</entry>
<entry>
<title>In preparation for raising NGROUPS and NGROUPS_MAX, change base</title>
<updated>2009-06-19T15:58:24Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2009-06-19T15:58:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=54404cfb13d40e474f72d3c75de1f4db3417df64'/>
<id>urn:sha1:54404cfb13d40e474f72d3c75de1f4db3417df64</id>
<content type='text'>
system callers of getgroups(), getgrouplist(), and setgroups() to
allocate buffers dynamically.  Specifically, allocate a buffer of size
sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow).

This (or similar gymnastics) is required for the code to actually follow
the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime
and where getgroups may return {NGROUPS_MAX}+1 results on systems like
FreeBSD which include the primary group.

In id(1), don't pointlessly add the primary group to the list of all
groups, it is always the first result from getgroups().  In principle
the old code was more portable, but this was only done in one of the two
places where getgroups() was called to the overall effect was pointless.

Document the actual POSIX requirements in the getgroups(2) and
setgroups(2) manpages.  We do not yet support a dynamic NGROUPS, but we
may in the future.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Per Regents of the University of Calfornia letter, remove advertising</title>
<updated>2007-01-09T00:28:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-09T00:28:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c879ae3536e6d92b8d96c8965c5b05fcb9541520'/>
<id>urn:sha1:c879ae3536e6d92b8d96c8965c5b05fcb9541520</id>
<content type='text'>
clause.

# If I've done so improperly on a file, please let me know.
</content>
</entry>
<entry>
<title>Fix problem where initgroups would silently truncate groups with</title>
<updated>2003-11-19T15:51:26Z</updated>
<author>
<name>Diomidis Spinellis</name>
<email>dds@FreeBSD.org</email>
</author>
<published>2003-11-19T15:51:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=434c74760ffe91c6f4cc3dff0d49a24dddb975c6'/>
<id>urn:sha1:434c74760ffe91c6f4cc3dff0d49a24dddb975c6</id>
<content type='text'>
more than NGROUP elements without providing the opportunity to
setgroups to fail and correctly return error and set errno.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Fix SCM ID's.</title>
<updated>2002-02-01T00:57:29Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-02-01T00:57:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ea8d448a923f0d68d7ecf1d2a0583c7d17bdee4e'/>
<id>urn:sha1:ea8d448a923f0d68d7ecf1d2a0583c7d17bdee4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the proper type (gid_t) for (group)-&gt;gr_gid to be orthogonal</title>
<updated>2002-01-22T17:32:53Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2002-01-22T17:32:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5567b258ebfb1a00cb9d07371894eae183e09a25'/>
<id>urn:sha1:5567b258ebfb1a00cb9d07371894eae183e09a25</id>
<content type='text'>
with uid_t usage and (user)-&gt;pw_uid.

PR:		3242
</content>
</entry>
<entry>
<title>Do not write warning messages on stderr - a caller is expected to check</title>
<updated>2001-11-28T10:55:02Z</updated>
<author>
<name>Anton Berezin</name>
<email>tobez@FreeBSD.org</email>
</author>
<published>2001-11-28T10:55:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7d3346ca1f857d6078f948e03b83abae618820da'/>
<id>urn:sha1:7d3346ca1f857d6078f948e03b83abae618820da</id>
<content type='text'>
the return code and errno instead.  Those warnings did not do any good
for daemonized users of initgroups(3), and confused cvs clients that
communicated with non-root cvs pserver.

The committed fix differs from the one suggested in the PR, and was
submitted by ru.

PR:		15421
Approved by:	markm
Discussed on:	-stable, -current at various times
</content>
</entry>
<entry>
<title>Fixed namespace pollution related to `warn' in libc (but not in other</title>
<updated>2001-08-29T13:52:27Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2001-08-29T13:52:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1643f03d5ffcd546a5ab371be686995141365d93'/>
<id>urn:sha1:1643f03d5ffcd546a5ab371be686995141365d93</id>
<content type='text'>
libraries or for other members of the err() family).

This fixes world breakage in bc and rcs/* for NOSHARED worlds.
</content>
</entry>
<entry>
<title>General -Wall warning cleanup, part I.</title>
<updated>1996-07-12T18:57:58Z</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>1996-07-12T18:57:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=51295a4d3e4c551df85249433c490208dc7fd23d'/>
<id>urn:sha1:51295a4d3e4c551df85249433c490208dc7fd23d</id>
<content type='text'>
Submitted-By: Kent Vander Velden &lt;graphix@iastate.edu&gt;
</content>
</entry>
<entry>
<title>Minor cleanup, mostly unused vars and missing #includes.</title>
<updated>1995-10-22T14:37:11Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>1995-10-22T14:37:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8b10240709e2f0878254162b742c8237b877129e'/>
<id>urn:sha1:8b10240709e2f0878254162b742c8237b877129e</id>
<content type='text'>
</content>
</entry>
</feed>
