Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-01-23 | found some boilerplate strncpy to replace with strlcpy. They are in | Theo de Raadt | |
messages, but the messages are zero'd first. ok jmatthew | |||
2023-11-27 | Add 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-08 | Delete obsolete /* ARGSUSED */ lint comments. | Philip Guenther | |
ok miod@ millert@ | |||
2022-12-28 | spelling fixes; from paul tagliamonte | Jason 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-15 | Once a ypserv is discovered we know the remote UDP port number, but not | Theo 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-29 | getifaddrs() can return entries where ifa_addr is NULL. Check for this | Sebastian Benoit | |
before accessing anything in ifa_addr. ok claudio@ | |||
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo 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-26 | Prefer <fcntl.h> over <sys/fcntl.h> in userland | Philip Guenther | |
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@ | |||
2018-04-26 | Delete 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-26 | Use <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-12 | Use unlinkat() when removing the contents of a directory so we don't | Todd C. Miller | |
need to construct paths. OK deraadt@ | |||
2017-02-17 | ypbind(8) is not started automatically at boot time by /etc/rc if domainname | Antoine Jacoutot | |
is set and the directory var/yp/binding exists. ok deraadt@ | |||
2016-07-08 | When 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-05 | Move 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-21 | Instead of creating a socket with socket() or accept() and then | Philip 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-12 | Remove NULL-checks before free(). | mmcc | |
2015-09-09 | Hide YP-specific xdr_* functions, and have the YP tools link -lrpcsvc | Theo de Raadt | |
as needed. ok miod guenther | |||
2015-08-20 | stdlib.h is in scope; do not cast malloc/calloc/realloc* | Theo de Raadt | |
ok millert krw | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo 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-08 | obvious cases of missing .An; | Ingo Schwarze | |
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes | |||
2014-01-21 | add back ctype.h include for isspace() | Jonathan Gray | |
2013-12-20 | delete 4 includes we do not need | Theo de Raadt | |
2013-11-24 | more unsigned char casts for ctype | Theo de Raadt | |
ok jca | |||
2009-10-28 | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | Theo 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-05 | DOMAINNNAME -> DOMAINNAME; | Jason McIntyre | |
2008-08-02 | usage() has to exit 1; Gleydson Soares | Theo de Raadt | |
2008-06-26 | First 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-09 | missing newlines in printfs | Theo de Raadt | |
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-02-18 | tidy up synopsis and usage(); from Igor Sobrado | Jason McIntyre | |
2007-01-02 | return proper server error on failed ypset. Inspired by freebsd; ok | Otto Moerbeek | |
deraadt@ | |||
2007-01-02 | Fix setting up the more specific binding for the ypsetme | Otto 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 LINT | Theo de Raadt | |
2004-02-20 | ypbin creates /var/yp/binding/<domainname>.<version> and /var/run/ypbind.lock | Henning 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-19 | very hairy modifications for dynamic fd_set handling. dynamic rpc fd_set's | Theo de Raadt | |
are just nasty; ok matthieu | |||
2003-07-15 | protos and repairs | Theo de Raadt | |
2003-06-25 | remove excess proto | Theo de Raadt | |
2003-06-12 | - section reorder | Jason McIntyre | |
- macro fixes - kill whitespace at EOL - new sentence, new line | |||
2003-06-02 | remove terms 3 and 4 of some of my licences | Theo de Raadt | |
2002-11-21 | third person; margarida | Theo de Raadt | |
2002-09-06 | use more socklen_t; pvalchev | Theo de Raadt | |
2002-07-20 | try to make pingsock and rpcsock resv too | Theo de Raadt | |
2002-06-29 | ansi | Theo de Raadt | |
2002-05-30 | minor KNF | Theo de Raadt | |
2002-03-14 | kill more registers. | Mike Pechkin | |
millert@ ok | |||
2002-02-16 | Part 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-29 | forgotten xid setting for additional domains; gregs@agilestorage.com, pr 2282 | Theo de Raadt | |
2001-11-05 | remove extra sys/signal.h | Theo de Raadt | |
2001-08-02 | o) .Sh AUTHOR -> .Sh AUTHORS; | Mike Pechkin | |
o) .Sh EXAMPLE -> .Sh EXAMPLES; o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION; millert@ ok |