Age | Commit message (Collapse) | Author |
|
|
|
straight replace: thanks both to schwarze and maja for feedback
on how to rewrite parts;
i've snuck in an rcs id->openbsd id change in dev_mkdb too;
|
|
for creating the hosts.byname, hosts.byaddr ethers.byname and ethers.byaddr YP
maps. Replace most of their functionality with sed/awk scripting directly in
Makefile.yp.
Suggested by and OK deraadt@
Feedback from @semarie
|
|
|
|
|
|
|
|
from Ricardo Mestre
|
|
while here, knock out a double rcs id
|
|
|
|
|
|
|
|
(which uses it in a strange way..) thereby making it possible to static
the interface in libc.
ok guenther
|
|
|
|
ok florian
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
|
|
ok deraadt@ millert@ tedu@
|
|
from Dimitris Papastamos
|
|
Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.
ok deraadt@
|
|
ok miod@ deraadt@
|
|
instead of using an uninitialized variable. While here, simplify the
code that calculates the message length, and use snprintf/strlcat more
carefully. ok millert@
|
|
|
|
ok millert@
|
|
|
|
ok jsing@ (with nit), jca@
|
|
|
|
|
|
suggestions and ok millert@
|
|
as the format and no variable args.
Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied
on numeric conversions when a precision is specified.
ok jung@ millert@ krw@
|
|
From: Jan Stary
|
|
|
|
|
|
for chars.
|
|
"misalign strings on the stack" bug in gcc4 is fixed (even when that
is fixed this idiom is safer and quite common)
|
|
and use that in Makefile.yp(8) at the end of cd /var/yp; make all
such that the new maps get used locally even when NOPUSH is set;
fixing a quirk reported by ian@.
While here, polish the yppush(8) manual
and document a few related mini-bugs to be fixed later.
feedback and ok ian@ and jmc@
|
|
|
|
Actually, i just realized this is *required* in case you are using
a non-standard DIR without a passwd(5) file, so i'm committing this
simple change right away.
|
|
That's useful because the latter is needed for passwd-maps, anyway.
Make the master.passwd file name configurable in the same way as passwd.
While here, do a bit of cleanup:
- Drop the HOSTS, PASSWD, GROUP, NETID #defines:
They are used nowhere else and serve no purpose.
- Use err(3), it's simpler and more precise than fprintf(3)+goto.
- Drop a debug statement forgotten a decade ago.
- In the manual, improve .Nd, DESCRIPTION and .Xrs.
Originally triggered by edd@'s gripes with our yp implementation.
Regarding the manual, using many tweaks from jmc@.
"I like this" ajacoutot@
"I think it's a good idea" edd@
"no opinion", "you decide" deraadt@
|
|
still likely: localhost in hosts map. ok deraadt@
|
|
deleting the ypservers.db file, both in the manual and in the FAQ;
original suggestion to improve this from ajacoutot@,
my wording tweaked by jmc@.
While here, resolve text duplication in the manual.
|
|
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
-f in brackets in the list of options; while here, sort the options
in the manual page.
jmc@ greatly improved the diff fixing a few additional bits on the
manual page.
ok jmc@
|
|
the manual page.
ok jmc@
|
|
|
|
from NetBSD and Debian via ajacoutot@
tweaks and documentation updates by myself with help from jmc@
OK ajacoutot@ jmc@ "move ahead" deraadt@
|
|
That way, you can edit the new domain Makefile before using it,
in particular to change variables like DIR and UNSECURE.
from ajacoutot@ with message tweaks and documentation updates by myself
"I like this" otto@
|
|
contains a matching entry, use that and refrain from accessing YP.
getpwnam/getpwuid: If YP is #defined and /etc/master.passwd(5) contains
a matching entry before the first YP entry, use that and stay away from YP.
Taken together, this allows a solution to the following problem pointed
out by deraadt@: When YP was configured but temporarily unavailable, even
root login would block, hindering you when trying to do repairs.
To avoid this, you can now provide a static entry for root in /etc/netid.
Using suggestions from miod@ otto@ blambert@ jmc@.
"commit" deraadt@, "cool" ajacoutot@, "looks fine" jmc@.
|
|
ok deraadt
|
|
|
|
tweaked by jmc@, thanks!
ok jmc@
|