#
7027866a |
| 13-Jul-2009 |
roy <roy@NetBSD.org> |
Rename internal getline() function to get_line() so it does conflict with the soon to be added getline(3) libc function.
|
#
f5a433a7 |
| 18-Jan-2009 |
lukem <lukem@NetBSD.org> |
fix -Wsign-compare issues
|
#
4a6e5a62 |
| 21-Mar-2006 |
christos <christos@NetBSD.org> |
Coverity CID 1750: Add a function to free a queue and use it.
|
#
1f548f35 |
| 21-Mar-2006 |
christos <christos@NetBSD.org> |
Coverity CID 1752: getq() always allocates a queue if nitems >= 0, so always free it.
|
#
c6813048 |
| 20-Jan-2006 |
christos <christos@NetBSD.org> |
Instead of dealing with port@host in many places, do it where it is needed. It reduces code and complexity and at the same time allows as to use symbolic ports instead of just numeric everywhere.
|
#
97f8851c |
| 04-Jan-2006 |
garbled <garbled@NetBSD.org> |
Address PR bin/12112 Lpd has the ability to start on a port other than "printer" but has no way to connect to a remote lpd on that port. This change adds the ability to specify port@host in the rm e
Address PR bin/12112 Lpd has the ability to start on a port other than "printer" but has no way to connect to a remote lpd on that port. This change adds the ability to specify port@host in the rm element of printcap(5). Tested to work with both a standard lpd setup and one running on special ports.
show more ...
|
#
04723c3f |
| 28-Nov-2005 |
christos <christos@NetBSD.org> |
- WARNS = 4 - factor out commonly used code. - constify - use warn/warnx instead of printf
|
#
75ba9fc7 |
| 30-Oct-2004 |
dsl <dsl@NetBSD.org> |
Add (unsigned char) cast to ctype functions Some of this code could usefully be converted to use strtoul() and/or some small helper functions.
|
#
326b2259 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
|
#
85da8822 |
| 17-May-2003 |
itojun <itojun@NetBSD.org> |
use strlcpy/strlcat. [fix off-by-one in displayq.c]
|
#
895dc72a |
| 14-Jul-2002 |
wiz <wiz@NetBSD.org> |
Unifdef __STDC__. Remove __P(). ANSIfy.
|
#
5da00734 |
| 08-Jun-2002 |
itojun <itojun@NetBSD.org> |
avoid hardcoded octals
|
#
7cdedd5c |
| 30-Aug-2001 |
itojun <itojun@NetBSD.org> |
use strlcpy. from openbsd
|
#
c9e786ce |
| 30-Aug-2001 |
itojun <itojun@NetBSD.org> |
security fix from openbsd:
Fix buffer oflow reading from queue file. While we are at it, crank the size of buffers that can hold filenames to MAXPATHLEN.
|
#
a062d796 |
| 25-Jun-2001 |
mrg <mrg@NetBSD.org> |
use DEFLP instead of "lp".
|
#
c2aa46e7 |
| 05-Jan-2001 |
lukem <lukem@NetBSD.org> |
use %ll_ instead of the less standard %q_
|
#
d8302e2d |
| 11-Oct-2000 |
is <is@NetBSD.org> |
More format string cleanups by sommerfeld.
|
#
5b6d0e7e |
| 07-Dec-1999 |
mrg <mrg@NetBSD.org> |
- add timeouts to displayq(), rmremote(), sendfile() and response(), and use these timeout in the lpq, lpd and lprm programs.
these stop hung remote printers that accept tcp connections but do not
- add timeouts to displayq(), rmremote(), sendfile() and response(), and use these timeout in the lpq, lpd and lprm programs.
these stop hung remote printers that accept tcp connections but do not process jobs from hanging the whole system and letting the sysadmin have a clue about what is going on with this rogue printer.
- add a -r flag to lpd to allow `of' filters for remote jobs.
i know there are ways around this, but i just don't care.
- add a -f flag to lpf to add missing carriage returns.
useful when printing UNIX files to an, eg, LaserWriter that wants CR's as well as LF's in raw text. stair-stepped text is no fun.
- implement child process accounting: we just have a limit on the number of children we can have (settable by the sysadmin), and we sleep when this number is reached. this can reduce malicious not-so-malicious attacks on the print server by a rogue remote client..
- use setproctitle() where appropriate so the sysadmin has a clue about what each of the lpd's here are doing.
this was useful to help diagnose a problem (that the above child process accounting change reduces the lossages of) where a rogue client was attempting "lpq" operations on one stuck queue in rapid succession, causing the lpd server to be extremely slow, due to the large number of lpd processes running.
i have been running these changes in production for about a year.
show more ...
|
#
23b9fac0 |
| 26-Sep-1999 |
mrg <mrg@NetBSD.org> |
delint and other cleanups.
|
#
c548010b |
| 14-Sep-1998 |
frueauf <frueauf@NetBSD.org> |
Fix pr 5071 better after feedback from the Originator Havard Eidnes.
|
#
988c1431 |
| 14-Sep-1998 |
frueauf <frueauf@NetBSD.org> |
Add (ugly?) code to prevent core dump as described in pr 5071 by Havard Eidnes.
XXX Maybe someone with more taste and understanding should have a look XXX at this? At least I prefer this over the so
Add (ugly?) code to prevent core dump as described in pr 5071 by Havard Eidnes.
XXX Maybe someone with more taste and understanding should have a look XXX at this? At least I prefer this over the solution provided in the pr.
show more ...
|
#
1bb06f8a |
| 05-Oct-1997 |
mrg <mrg@NetBSD.org> |
fix alpha compile warnings.
|
#
fe7ed7ce |
| 05-Oct-1997 |
mrg <mrg@NetBSD.org> |
- WARNS?=1 - be safe with unlinking files (from freebsd) - remove register - clean up $NetBSD$'s. - use inet_ntoa() in one place (from openbsd) - nul terminate after a bunch of strncpy()'s - #ifdef _
- WARNS?=1 - be safe with unlinking files (from freebsd) - remove register - clean up $NetBSD$'s. - use inet_ntoa() in one place (from openbsd) - nul terminate after a bunch of strncpy()'s - #ifdef __STDC__ rather than #if (from freebsd) - be safe with a bunch of string operations (from freebsd) - use warn()/err() over home grown versions (some from freebsd) - rename warn() to nodaemon() to remove conflict with above - check errno from failed kill(2) against ESRCH (from freebsd) - use getopt() rather than home grown versions (from freebsd) - clean up a bunch of man pages (some from freebsd) - check for hostname spoof (from freebsd) - use POSIX wait() interfaces - use sysconf(_SC_OPEN_MAX) in preference to NOFILE (from freebsd) - deal with fork() failure - index/rindex -> strchr/strrchr (some from freebsd) - add B57600 and B115200 speeds (from freebsd) - some KNF - be safe with files passed in over the network (some from freebsd) - check return value of malloc(), calloc() and strdup()
show more ...
|
#
e6a91a09 |
| 05-Oct-1997 |
mrg <mrg@NetBSD.org> |
merge 4.4 lite2
|
#
ad1d6861 |
| 10-Jul-1997 |
mikel <mikel@NetBSD.org> |
make explicit comparisons to NULL (gcc -Wall)
|