summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv
AgeCommit message (Collapse)Author
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@
2008-06-01synchronize synopsis and usage.Igor Sobrado
2008-02-23correct pathnames reported; pr#5742Theo de Raadt
2007-09-04use memrchr; ok millert@.Federico G. Schwindt
2007-09-04Use err(3) functions. input and ok millert.Federico G. Schwindt
2007-08-05use memchr and a memrchr like implementation on non C strings. fixesFederico G. Schwindt
a crash triggered by specific malloc.conf settings. with help and ok millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29Remove clause 3 and 4. Ok with Chuck. -mojMats O Jansson
2007-05-27use macros from sys/queue.hPierre-Yves Ritschard
ok otto@
2007-02-20Change hard coded numbers to sizeof(buf). Also change someRay Lai
sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@.
2007-02-19- simply synopsis and usage()Jason McIntyre
- order options mostly from Igor Sobrado
2007-02-18tidy up synopsis and usage(); from Igor SobradoJason McIntyre
2006-11-22Outsource fgets line reading, newline continuation, and commentRay Lai
handling to fparseln. Fixes out of bounds array access for strings of length 0 or 1. OK moritz@.
2006-11-10`elminate' etc. is not really the right way to spell `eliminate'.Michael Knudsen
ok brad
2006-09-25Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which leads to surprising results. Spotted by from Paul Stoeber, more to come. ok jaredy@
2006-04-03spreading the lint love (very minimal things..)Theo de Raadt
2006-03-18do not leak on re-insert; ok pvalchevTheo de Raadt
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2005-12-21Userland programs should include <errno.h> not <sys/errno.h>Todd C. Miller
OK deraadt@
2005-10-15Use queue macros instead of directly accessing fields. ok miod@ pat@ millert@Otto Moerbeek
2005-09-16use poll() instead of select(), pr4505, alexander.farber@gmail.comTheo de Raadt