#
6e0d8980 |
| 19-Jan-2021 |
claudio <claudio@openbsd.org> |
Fix the embedded scope hack. They way this was written is buggy since the else does not skip enough of the original code. Instead use a temporary sockaddr pointer and adjust it to point to the sin6 o
Fix the embedded scope hack. They way this was written is buggy since the else does not skip enough of the original code. Instead use a temporary sockaddr pointer and adjust it to point to the sin6 one if an embedded scope was detected. OK jca@
show more ...
|
#
b39abec3 |
| 29-Feb-2016 |
jca <jca@openbsd.org> |
Move ckqueue() to common_source/common.c
Patch from Chris Bennett, ok tb@
|
#
c6fb3f97 |
| 12-Jan-2016 |
tb <tb@openbsd.org> |
Move prototypes of local functions from lp.h to the .c files and make functions static if possible. Move delay() to lpd/printjob.c and fix an annoying typo.
ok deraadt@
|
#
74590bb3 |
| 20-Aug-2015 |
deraadt <deraadt@openbsd.org> |
stdlib.h is in scope; do not cast malloc/calloc/realloc*
|
#
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 ...
|
#
0a0e74f8 |
| 02-Nov-2014 |
deraadt <deraadt@openbsd.org> |
use nanosleep() instead of select(); ok jsing
|
#
f53a51db |
| 16-Oct-2014 |
deraadt <deraadt@openbsd.org> |
reallocarray() obviously
|
#
cf85265f |
| 10-Dec-2013 |
naddy <naddy@openbsd.org> |
Remove the printcap fc, fs, xc, xs capabilities from lpd that were used to configure a tty by poking magic numbers into sgtty. If needed, the ms capability, which uses symbolic stty modes, can be us
Remove the printcap fc, fs, xc, xs capabilities from lpd that were used to configure a tty by poking magic numbers into sgtty. If needed, the ms capability, which uses symbolic stty modes, can be used instead. Better description of ms from FreeBSD. ok beck@, deraadt@, jmc@ (man page)
show more ...
|
#
f9bbbf45 |
| 04-Mar-2012 |
fgsch <fgsch@openbsd.org> |
In preparation for getline and getdelim additions to libc, rename getline() occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
|
#
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 ...
|
#
1ed98fdf |
| 02-Sep-2007 |
deraadt <deraadt@openbsd.org> |
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
|
#
c30db538 |
| 16-Mar-2007 |
stevesk <stevesk@openbsd.org> |
remove unused variable; ok millert@
|
#
4abf12a8 |
| 13-Mar-2007 |
stevesk <stevesk@openbsd.org> |
typos in comments; ok millert@
|
#
eeeee3b7 |
| 17-Nov-2004 |
itojun <itojun@openbsd.org> |
NI_WITHSCOPEID is no more.
|
#
683a553c |
| 28-Sep-2004 |
millert <millert@openbsd.org> |
Simpler loop to free queue items. OK otto@
|
#
e37c2d97 |
| 28-Sep-2004 |
otto <otto@openbsd.org> |
Fix leaks in error paths. from Patrick Latifi. ok millert@
|
#
f733074b |
| 26-Sep-2003 |
pvalchev <pvalchev@openbsd.org> |
realloc fixes; ok deraadt millert
|
#
29295d1c |
| 02-Jun-2003 |
millert <millert@openbsd.org> |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
12e23270 |
| 07-Apr-2003 |
deraadt <deraadt@openbsd.org> |
kill last strcpy; ok millert
|
#
1626cda6 |
| 13-Jun-2002 |
millert <millert@openbsd.org> |
Fixed some lpd bugs while on the plane from Calgary: o mark fatal() as __dead o add SIGINT to the signal mask when installing abort() as a handler. We can end up in abortpr() due to several differe
Fixed some lpd bugs while on the plane from Calgary: o mark fatal() as __dead o add SIGINT to the signal mask when installing abort() as a handler. We can end up in abortpr() due to several different signals and since abortpr() kill()s itself with SIGINT we need to explicately protect against the current process receiving SIGINT while in abortpr() o Don't leak the lock fd to children spawned by lpd o Close the lock file (and thus unlocke immediately in abortpr(). Otherwise, if there is an output filter the lock file only gets closed after we finish waiting for the output filter to die. This causes a race condition in lprm such that the per-printer daemon does not get restarted when lprm kills the active job (noticed during c2k2 with the mp3 printer spool ;-) o Open the printcap file with privs raised just in case it is not world-readable.
show more ...
|
#
984fa694 |
| 09-Jun-2002 |
millert <millert@openbsd.org> |
Convert remaining K&R function headers to ANSI
|
#
a79bd069 |
| 09-Jun-2002 |
millert <millert@openbsd.org> |
o Kill "garbage" global (unused) o Kill "rank" global (doesn't need to be global) o Make inform() static (local to displayq.c) o Pass in rank to inform() based on index within sorted mtime array o Si
o Kill "garbage" global (unused) o Kill "rank" global (doesn't need to be global) o Make inform() static (local to displayq.c) o Pass in rank to inform() based on index within sorted mtime array o Simplify compar()
show more ...
|
#
6762fb20 |
| 08-Jun-2002 |
millert <millert@openbsd.org> |
use the dirfd macro instead of reaching into the DIR and pulling out dd_fd
|
#
7a930503 |
| 08-Jun-2002 |
millert <millert@openbsd.org> |
Remove some debugging code
|
#
6468ba68 |
| 08-Jun-2002 |
millert <millert@openbsd.org> |
Remove setuid root from lp*. lpr needs to be setuid daemon so the files it creates are not owned by the user spooling them but the others (lpc, lpq, lprm) can get away with setgid daemon. lpd runs
Remove setuid root from lp*. lpr needs to be setuid daemon so the files it creates are not owned by the user spooling them but the others (lpc, lpq, lprm) can get away with setgid daemon. lpd runs as user daemon for most things, only changing its uid to 0 for things that must be done as root.
For the time being, don't require connections to come from a reserved port since lpq/lpr/lprm can't acquire that w/o setuid root. In the near future we will have a mechanism for select non-root processes to grab reserved ports.
The upshot of this is that spool directories must be writable by group daemon and the files within the spool dirs must be owned by daemon.
show more ...
|