#
55fc3639 |
| 23-Jan-2024 |
deraadt <deraadt@openbsd.org> |
found some boilerplate strncpy to replace with strlcpy. They are in messages, but the messages are zero'd first. ok jmatthew
|
#
c0ddac47 |
| 27-Nov-2023 |
tb <tb@openbsd.org> |
Add missing error check for yp_get_default_domain()
Avoids a crash when no default domain is set.
from hshoexer ok deraadt who had the same diff
|
#
5b133f3f |
| 08-Mar-2023 |
guenther <guenther@openbsd.org> |
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
|
#
3a50f0a9 |
| 28-Dec-2022 |
jmc <jmc@openbsd.org> |
spelling fixes; from paul tagliamonte any parts of his diff not taken are noted on tech
|
#
95e50ed9 |
| 17-Jul-2022 |
deraadt <deraadt@openbsd.org> |
/var/run/ypbind.lock doesn't need to be created with an advisory lock anymore, because libc & pledge() doesn't care. libc now calls ypconnect(), which still cares about the advisory lock on /var/yp/b
/var/run/ypbind.lock doesn't need to be created with an advisory lock anymore, 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
show more ...
|
#
f1eb3c94 |
| 15-Jul-2022 |
deraadt <deraadt@openbsd.org> |
Once a ypserv is discovered we know the remote UDP port number, but not the TCP port number. Immediately reach out (syncronously via pmap_getport, to ask the portmap on the ypserv machine) to learn
Once a ypserv is discovered we know the remote UDP port number, but not 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
show more ...
|
#
8ab28890 |
| 29-Dec-2020 |
benno <benno@openbsd.org> |
getifaddrs() can return entries where ifa_addr is NULL. Check for this before accessing anything in ifa_addr. ok claudio@
|
#
df69c215 |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary 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.
show more ...
|
#
6316a812 |
| 26-Apr-2018 |
guenther <guenther@openbsd.org> |
Prefer <fcntl.h> over <sys/fcntl.h> in userland While here, delete some extra #includes and apply style(9) sort rules.
ok deraadt@ krw@ mpi@
|
#
f4147939 |
| 26-Apr-2018 |
guenther <guenther@openbsd.org> |
Use <fcntl.h> instead of <sys/file.h> for open() and friends. Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup.
ok deraadt@ krw@
|
#
e6990a60 |
| 12-Jun-2017 |
millert <millert@openbsd.org> |
Use unlinkat() when removing the contents of a directory so we don't need to construct paths. OK deraadt@
|
#
8d8a71b4 |
| 17-Feb-2017 |
ajacoutot <ajacoutot@openbsd.org> |
ypbind(8) is not started automatically at boot time by /etc/rc if domainname is set and the directory var/yp/binding exists.
ok deraadt@
|
#
421bd63c |
| 08-Jul-2016 |
millert <millert@openbsd.org> |
When making a copy of svc_pollfd, use the correct size. Also pass the correct fd count to svc_getreq_poll(). OK jca@
|
#
b5caa0f8 |
| 05-Jul-2016 |
jca <jca@openbsd.org> |
Move to svc_getreq_poll/svc_pollfd.
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
Move to svc_getreq_poll/svc_pollfd.
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@
show more ...
|
#
5f13b87e |
| 21-Mar-2016 |
guenther <guenther@openbsd.org> |
Instead of creating a socket with socket() or accept() and then 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
Instead of creating a socket with socket() or accept() and then 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@
show more ...
|
#
580f3da4 |
| 12-Dec-2015 |
mmcc <mmcc@openbsd.org> |
Remove NULL-checks before free().
|
#
35de856e |
| 20-Aug-2015 |
deraadt <deraadt@openbsd.org> |
stdlib.h is in scope; do not cast malloc/calloc/realloc* ok millert krw
|
#
b9fc9a72 |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N
Replace <sys/param.h> with <limits.h> and other less dirty headers where 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)
show more ...
|
#
c987ec2d |
| 21-Jan-2014 |
jsg <jsg@openbsd.org> |
add back ctype.h include for isspace()
|
#
6007504b |
| 20-Dec-2013 |
deraadt <deraadt@openbsd.org> |
delete 4 includes we do not need
|
#
2bfe0399 |
| 24-Nov-2013 |
deraadt <deraadt@openbsd.org> |
more unsigned char casts for ctype ok jca
|
#
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
show more ...
|
#
1ac021b5 |
| 02-Aug-2008 |
deraadt <deraadt@openbsd.org> |
usage() has to exit 1; Gleydson Soares
|
#
83ffb15c |
| 09-Oct-2007 |
deraadt <deraadt@openbsd.org> |
missing newlines in printfs
|
#
c25d71fc |
| 18-Feb-2007 |
jmc <jmc@openbsd.org> |
tidy up synopsis and usage(); from Igor Sobrado
|