summaryrefslogtreecommitdiff
path: root/usr.sbin/ypbind
AgeCommit message (Collapse)Author
2024-01-23found some boilerplate strncpy to replace with strlcpy. They are inTheo de Raadt
messages, but the messages are zero'd first. ok jmatthew
2023-11-27Add missing error check for yp_get_default_domain()Theo Buehler
Avoids a crash when no default domain is set. from hshoexer ok deraadt who had the same diff
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2022-12-28spelling fixes; from paul tagliamonteJason McIntyre
any parts of his diff not taken are noted on tech
2022-07-17/var/run/ypbind.lock doesn't need to be created with an advisory lock anymore,Theo de Raadt
because libc & pledge() doesn't care. libc now calls ypconnect(), which still cares about the advisory lock on /var/yp/bindings/$domain.2, so that code remains. ok jmatthew miod
2022-07-15Once a ypserv is discovered we know the remote UDP port number, but notTheo de Raadt
the TCP port number. Immediately reach out (syncronously via pmap_getport, to ask the portmap on the ypserv machine) to learn the TCP port number. Append this as 2 bytes (network byte order) to the binding file, because an upcoming change will require this information also. with jmatthew, also ok claudio miod
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandPhilip Guenther
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
2018-04-26Delete support for the networks.by{name,addr} YP maps.Ingo Schwarze
This is part of the project to delete /etc/networks support. OK deraadt@
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2017-06-12Use unlinkat() when removing the contents of a directory so we don'tTodd C. Miller
need to construct paths. OK deraadt@
2017-02-17ypbind(8) is not started automatically at boot time by /etc/rc if domainnameAntoine Jacoutot
is set and the directory var/yp/binding exists. ok deraadt@
2016-07-08When making a copy of svc_pollfd, use the correct size.Todd C. Miller
Also pass the correct fd count to svc_getreq_poll(). OK jca@
2016-07-05Move to svc_getreq_poll/svc_pollfd.Jeremie Courreges-Anglas
Stop using select to avoid the weird workarounds for fd_set size. Also replace calloc with reallocarray. Prompted by a mail by Miod, cluebat from guenther@. ok millert@, prodding deraadt@
2016-03-21Instead of creating a socket with socket() or accept() and thenPhilip Guenther
setting the O_NONBLOCK flag on it with fcntl(F_SETFL) afterwards, just pass SOCK_NONBLOCK to socket() or accept4() and get it right to begin with. ok millert@ krw@ beck@ deraadt@ jca@
2015-12-12Remove NULL-checks before free().mmcc
2015-09-09Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvcTheo de Raadt
as needed. ok miod guenther
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
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)
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2014-01-21add back ctype.h include for isspace()Jonathan Gray
2013-12-20delete 4 includes we do not needTheo de Raadt
2013-11-24more unsigned char casts for ctypeTheo de Raadt
ok jca
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-03-05DOMAINNNAME -> DOMAINNAME;Jason McIntyre
2008-08-02usage() has to exit 1; Gleydson SoaresTheo de Raadt
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2007-10-09missing newlines in printfsTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-02-18tidy up synopsis and usage(); from Igor SobradoJason McIntyre
2007-01-02return proper server error on failed ypset. Inspired by freebsd; okOtto Moerbeek
deraadt@
2007-01-02Fix setting up the more specific binding for the ypsetmeOtto Moerbeek
functionality. We want to bind to the same ports as the general binding, but with a local address. with and ok deraadt@
2006-04-02#ifdef lint not LINTTheo de Raadt
2004-02-20ypbin creates /var/yp/binding/<domainname>.<version> and /var/run/ypbind.lockHenning Brauer
using open(2) with mode 0644 - however, these files _have_ to be world readable, and open's mode is subject to umask. do an explicit fchmod after open to set the mode to 0644 regardless of umask. ok maja@ deraadt@
2003-08-19very hairy modifications for dynamic fd_set handling. dynamic rpc fd_set'sTheo de Raadt
are just nasty; ok matthieu
2003-07-15protos and repairsTheo de Raadt
2003-06-25remove excess protoTheo de Raadt
2003-06-12- section reorderJason McIntyre
- macro fixes - kill whitespace at EOL - new sentence, new line
2003-06-02remove terms 3 and 4 of some of my licencesTheo de Raadt
2002-11-21third person; margaridaTheo de Raadt
2002-09-06use more socklen_t; pvalchevTheo de Raadt
2002-07-20try to make pingsock and rpcsock resv tooTheo de Raadt
2002-06-29ansiTheo de Raadt
2002-05-30minor KNFTheo de Raadt
2002-03-14kill more registers.Mike Pechkin
millert@ ok
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-12-29forgotten xid setting for additional domains; gregs@agilestorage.com, pr 2282Theo de Raadt
2001-11-05remove extra sys/signal.hTheo de Raadt
2001-08-02o) .Sh AUTHOR -> .Sh AUTHORS;Mike Pechkin
o) .Sh EXAMPLE -> .Sh EXAMPLES; o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION; millert@ ok