summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv
AgeCommit message (Collapse)Author
2015-12-08Remove NULL-checks before free().mmcc
2015-11-30change Xrs from now-defunct db(3) to dbopen(3); this wasn;t aJason McIntyre
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;
2015-11-29Tedu stdethers and stdhosts from /usr/sbin, which are only used in Makefile.ypRobert Peichaer
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
2015-11-21add missing NAME entries; ok schwarzeJason McIntyre
2015-11-17include fix. dbm is ndbm and memory is string. ok deraadt.Ted Unangst
2015-11-17off to the bitbucket in the skyTheo de Raadt
2015-11-12use symbolics for flags to openTheo de Raadt
from Ricardo Mestre
2015-11-05spelling; from tjJason McIntyre
while here, knock out a double rcs id
2015-10-28pid removal; from jan staryJason McIntyre
2015-10-26last consumer in base of pidfile()...Theo de Raadt
2015-10-09correct Xr; from theo buehlerJason McIntyre
2015-09-11Put a private copy of the ypresp_allfn/ypresp_data interface into ypservTheo de Raadt
(which uses it in a strange way..) thereby making it possible to static the interface in libc. ok guenther
2015-09-10reduce .Nd to one line and kill .Tn while hereIngo Schwarze
2015-02-09clean up flags++ instances around getopt()Theo de Raadt
ok florian
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2015-01-15not supposed to include sys/ttycom.h (these may have rpcgen history)Theo de Raadt
2014-11-18Nuke more obvious #include duplications.Kenneth R Westerback
ok deraadt@ millert@ tedu@
2014-11-04use after free in poll loopTheo de Raadt
from Dimitris Papastamos
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-02-24fix a memory leak in an error pathJonathan Gray
ok miod@ deraadt@
2013-12-05In lookup_host(), return to caller a properly calculated message lengthJeremie Courreges-Anglas
instead of using an uninitialized variable. While here, simplify the code that calculates the message length, and use snprintf/strlcat more carefully. ok millert@
2013-12-05Properly initialize 'transp' to appease the compiler. ok millert@Jeremie Courreges-Anglas
2013-12-05Provide a prototype for ngstore() and include <unistd.h> for getopt().Jeremie Courreges-Anglas
ok millert@
2013-12-05In split_address(), make 'i' a size_t. ok millert@Jeremie Courreges-Anglas
2013-12-04opt_map CIRCLEQ -> TAILQ.Kenneth R Westerback
ok jsing@ (with nit), jca@
2013-12-04ctype improvements; checked by okanTheo de Raadt
2013-11-12ensure there are prototypesTheo de Raadt
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-08-18Fix calls to printf-like functions which passed a non-fixed stringPhilip Guenther
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@
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
for chars.
2010-06-29force the dns buffers to be aligned using a union, until the retardedTheo de Raadt
"misalign strings on the stack" bug in gcc4 is fixed (even when that is fixed this idiom is safer and quite common)
2010-01-20Make ypserv(8) reread its YP maps on SIGHUPIngo Schwarze
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@
2009-12-20zap trailing whitespace;Jason McIntyre
2009-12-20Make use of the new mknetid(8) -P flag.Ingo Schwarze
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.
2009-12-20When a passwd(5) file is not available, fall back to master.passwd(5).Ingo Schwarze
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@
2009-11-21MIN_UID in yp make removes root, so look for something that isIan Darwin
still likely: localhost in hosts map. ok deraadt@
2009-11-06Correct and shorten the instructions what to do after accidentallyIngo Schwarze
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.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-10-20the flags -h and -u are mutually exclusive; we do not need enclosingIgor Sobrado
-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@
2009-10-20improve the synopsis of mkalias(8) and sort the list of flags onIgor Sobrado
the manual page. ok jmc@
2009-10-16sort flags in synopsis, usage, and description.Igor Sobrado
2009-04-12restrict YP UID and GID rangesIngo Schwarze
from NetBSD and Debian via ajacoutot@ tweaks and documentation updates by myself with help from jmc@ OK ajacoutot@ jmc@ "move ahead" deraadt@
2009-04-04Do not run make in /var/yp at the end of ypinit -m.Ingo Schwarze
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@
2009-03-27getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5)Ingo Schwarze
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@.
2008-10-22man page for Makefile.yp, and associated bits; from Ingo SchwarzeJason McIntyre
ok deraadt
2008-06-02sort options in DESCRIPTION.Igor Sobrado
2008-06-01sort flags; synchronize synopsis and usage; style(9).Igor Sobrado
tweaked by jmc@, thanks! ok jmc@