| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Most of these tools build with WARNS=6, except for their use of K&R
function declarations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
from Berkeley.
|
|
|
|
|
|
|
| |
when chrooting.
Obtained from: NetBSD
MFC after: 4 weeks
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
(never installed setuid, so don't need to reset the uid).
PR: bin/34159
|
|
|
|
|
| |
PR: docs/33178
Submitted by: Tom Rhodes <darklogik@pittgoth.com>
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
| |
Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks
|
| |
|
|
|
|
| |
Idea from: Theo de Raadt <deraadt@openbsd.org>
|
|
|
|
| |
- MAN[1-9] -> MAN.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
| |
(and rename a few in the process).
|
|
|