History log of /openbsd/usr.sbin/lpr/lpd/lpd.c (Results 1 – 25 of 66)
Revision Date Author Comments
# 3a50f0a9 28-Dec-2022 jmc <jmc@openbsd.org>

spelling fixes; from paul tagliamonte
any parts of his diff not taken are noted on tech


# 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@


# b39abec3 29-Feb-2016 jca <jca@openbsd.org>

Move ckqueue() to common_source/common.c

Patch from Chris Bennett, ok tb@


# 3705bbe4 19-Dec-2015 mmcc <mmcc@openbsd.org>

Remove NULL-check before free().


# ebada818 28-Oct-2015 millert <millert@openbsd.org>

Remove support for lpd.pid file. OK deraadt@


# e5ffb51b 27-Oct-2015 millert <millert@openbsd.org>

Use AF_UNIX instead of AF_LOCAL.


# e9bd1503 11-Oct-2015 guenther <guenther@openbsd.org>

Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept
sizeof(struct sockaddr_un), so do the simple, portable thing.
Also convert some strncpy() to strlcpy()

ok deraadt@


# 1e18bebc 29-Sep-2015 millert <millert@openbsd.org>

Replace call to __ivaliduser_sa() with a pared down version that
only checks the host name. This clears the way for removal of
__ivaliduser_sa() and __ivaliduser() from libc. OK deraadt@


# 28056f30 09-Feb-2015 deraadt <deraadt@openbsd.org>

clean up flags++ instances around getopt()
ok florian


# 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 ...


# 7177ad58 17-Oct-2014 deraadt <deraadt@openbsd.org>

Remove chunk special-casing malloc(siz) for realloc(NULL, siz). Bit
tricky, but note the remembered size is in bss.


# a6d758a8 11-Oct-2014 doug <doug@openbsd.org>

Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@ (had same diff

Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@ (had same diff in tree)

show more ...


# 8785ab1e 12-Jul-2014 deraadt <deraadt@openbsd.org>

The hosts.lpd file must exist, or no permission is granted. Change the
the log messages to clarify the reason for the failure to clarify the
condition.
ok guenther


# acafcefc 20-Apr-2014 ajacoutot <ajacoutot@openbsd.org>

Prevent lpd(8) from looking into hosts.equiv.
Access control is now done only using hosts.lpd.
See lpd(8) for more information about the format of this file.

"seems reasonable" tedu@
"looks good" de

Prevent lpd(8) from looking into hosts.equiv.
Access control is now done only using hosts.lpd.
See lpd(8) for more information about the format of this file.

"seems reasonable" tedu@
"looks good" deraadt@
ok sthen@

show more ...


# 0c4db8c1 24-Nov-2013 deraadt <deraadt@openbsd.org>

more ctype cleanups
checked by jca


# 62e3c252 11-Mar-2013 deraadt <deraadt@openbsd.org>

handle ECONNABORTED errors from accept(). In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directori

handle ECONNABORTED errors from accept(). In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directories...

show more ...


# 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 ...


# 528c880f 26-May-2008 otto <otto@openbsd.org>

cgetstr(3) can also return 2 so handle that. Also restructre things a bit
to get rid of the flag var. ok deraadt@ fgsch@


# 371748ed 22-May-2008 otto <otto@openbsd.org>

Comparing string literals does not work as the author expected.
From Adam Majer (debian maintaner); looks correct fgs@


# 1ed98fdf 02-Sep-2007 deraadt <deraadt@openbsd.org>

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg


# 8d66a5d9 05-May-2007 stevesk <stevesk@openbsd.org>

remove code for -W, argument now a no-op; ok millert@


# 316fee46 01-May-2007 stevesk <stevesk@openbsd.org>

remove #ifndef SUN_LEN; ok millert@


# 67e491c4 07-Apr-2004 aaron <aaron@openbsd.org>

Remove those option letters from the getopt string which do not have a case
handler below. millert@ ok


# 6957a4a4 08-Nov-2003 jmc <jmc@openbsd.org>

typos from Jonathon Gray;


# 32a5de2e 16-Oct-2003 itojun <itojun@openbsd.org>

safer realloc. deraadt ok


123