#
e6c7c102 |
| 23-Apr-2024 |
jsg <jsg@openbsd.org> |
correct indentation; no functional change ok tb@
|
#
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@
|
#
7220d8ec |
| 17-Mar-2016 |
bentley <bentley@openbsd.org> |
Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded
Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate.
ok deraadt@; man bits ok jmc@
show more ...
|
#
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 ...
|
#
87ad3f24 |
| 21-May-2014 |
pascal <pascal@openbsd.org> |
stat(2) on the spool file needs privileges. Fixes file size reported by lpq -l.
ok millert@
|
#
0c4db8c1 |
| 24-Nov-2013 |
deraadt <deraadt@openbsd.org> |
more ctype cleanups checked by jca
|
#
390b7edb |
| 27-Oct-2013 |
guenther <guenther@openbsd.org> |
If a constant string needs a name, use a static const array instead of a pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings
If a constant string needs a name, use a static const array instead of a pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings.
ok deraadt@
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 ...
|
#
90ddbda6 |
| 03-Mar-2009 |
stevesk <stevesk@openbsd.org> |
spaces
|
#
71932758 |
| 08-Apr-2007 |
stevesk <stevesk@openbsd.org> |
I have an HP LaserJet (P2015dn) whose LPR implementation may not end the send queue state command stream with '\n'; check for this case and print '\n' if needed. Without this you may see something l
I have an HP LaserJet (P2015dn) whose LPR implementation may not end the send queue state command stream with '\n'; check for this case and print '\n' if needed. Without this you may see something like:
$ lpq queue empty$
ok millert@
show more ...
|
#
bc116517 |
| 07-Apr-2007 |
stevesk <stevesk@openbsd.org> |
trailing "\n" not needed in fatal(); ok millert@
|
#
067cf10a |
| 08-Apr-2006 |
ray <ray@openbsd.org> |
Plug memory leak when nitems == 0.
From NetBSD from Coverity CID 1752.
OK jaredy@
|
#
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.
|
#
9d9fab4c |
| 13-May-2003 |
pjanzen <pjanzen@openbsd.org> |
Don't reformat output beyond a minimum terminal width (60). millert@ ok
|
#
f766a260 |
| 12-May-2003 |
pjanzen <pjanzen@openbsd.org> |
Do vis()-cleaning when displaying the print queue. ok deraadt@, ian@
|
#
0f7801fe |
| 05-Apr-2003 |
avsm <avsm@openbsd.org> |
trivial strlcat, tedu@ ok
|
#
ad14a27c |
| 09-Jun-2002 |
millert <millert@openbsd.org> |
Better fix for correct queue printing when things have been moved around.
|
#
25839e37 |
| 09-Jun-2002 |
millert <millert@openbsd.org> |
Don't print jobs in transit to a remote queue as being "active"
|
#
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 ...
|
#
eaf9a761 |
| 08-Jun-2002 |
millert <millert@openbsd.org> |
o Replace some hard-coded octal constants w/ S_I* o Remove some unneeded casts to char * when calling free()
|
#
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 ...
|
#
0cb510f4 |
| 28-May-2002 |
millert <millert@openbsd.org> |
Remove useless sigaddset()
|