summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove some debugging codemillert2002-06-081-7/+2
|
* Remove setuid root from lp*. lpr needs to be setuid daemon so themillert2002-06-086-90/+166
| | | | | | | | | | | | | | | | 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.
* Remove useless sigaddset()millert2002-05-281-3/+2
|
* Pull in useful bits from NetBSD and make our lp* easier to diff andmillert2002-05-207-235/+345
| | | | | | | | | | | | | | | | do some minor cleanup of my own: o IPv6 support o ANSI function headers o use getopt() o synce usage() with man pages o passes -Wall on both 32bit and 64bit platforms o add an option to set the max number of children lpd will fork off o add an lpd option to bind to specific addresses instead of INADDR_ANY. o allow user to specify how long to wait for a connection to remote servers o more strlcpy() and snprintf() usage o Use FOO_FILENO constants instead of hard-coding 0-2 o Add some keeps to man the page SYNOPSIS to avoid options being split
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-18/+4
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-2/+2
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-163-30/+30
|
* use err/warn and friends instead of printf/exit.ericj2001-12-063-22/+10
| | | | | | also, remove fatal2() which is just errx anyway. millert@ ok
* use the same siginterrupt() trick in lpc(1) as in timedc(1). we have to hackderaadt2001-11-233-12/+51
| | | | a global into the other programs since they share some source.
* displayq to honor the terminal width; millert@ okmickey2001-11-012-14/+27
|
* o kill registermillert2001-08-304-36/+36
| | | | | o add const to rcsid and copyright strings o placate -Wall
* Better buffer lengths (MAXFOO and FOO_MAX) based on a patch frommillert2001-08-301-3/+3
| | | | ianm@cit.uws.edu.au.
* Use NAME_MAX, not MAXPATHLEN for buffer sizes since they are notmillert2001-08-301-4/+4
| | | | full paths (cannot contain a slash). From discussion with drosih@rpi.edu
* Fix buffer oflow reading from queue file. While we are at it, crankmillert2001-08-291-9/+15
| | | | the size of buffers that can hold filenames to MAXPATHLEN.
* use strlcpy vs strncpy+a[len-1]='\0'lebel2001-06-221-4/+3
|
* another euid mixup; wiz@danbala.ifoer.tuwien.ac.atderaadt2001-04-051-4/+6
|
* missung euid swapout; j@ida.interface-business.dederaadt2001-04-041-3/+5
|
* Treat a printer as remote iff RM is not us or RP is set and it doesn't match theangelos1998-06-281-2/+17
| | | | current printer;dwmalone@maths.tcd.ie
* Fix snprintf return value usage.millert1998-06-231-4/+4
|
* buf mishandling; rotel@indigo.iederaadt1998-04-221-6/+6
|
* be more paranoid.deraadt1998-02-271-11/+21
| | | | | | | By the way, the lp* tools are in need of a full test sometime in the next two weeks. I want to hear from someone who is running all of them that they work 100% fine. I do not own a printer, so I'm going to rely on someone out there to take care of this..
* Use keepalives as the protocol never notices if a networked printerniklas1998-02-151-3/+6
| | | | dies.
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-5/+5
|
* inet_aton() returns 0 on error, not -1.millert1997-07-241-3/+3
|
* 1 byte oflows; millertderaadt1997-07-232-7/+7
|
* Wall cleanup; people running lpd should test!deraadt1997-07-191-4/+4
|
* Be extra careful when unlinking data file to only remove a file ismillert1997-07-181-2/+4
| | | | it is in the current dir and df*. From imp@openbsd.org.
* Wallderaadt1997-07-172-6/+6
|
* It is not a reasonable default behavior to abort a printout because of itskstailey1997-06-231-2/+2
| | | | size now that there's PostScript[tm].
* Add OpenBSD tagsmillert1997-01-176-0/+24
|
* Possible buf oflow.millert1997-01-171-3/+10
|
* lpr suite uses getcap(3) so this is never used!millert1996-11-051-327/+0
|
* Remove dead code as pointed out by bitblt. Also nuke the gross #defines,millert1996-11-041-178/+21
| | | | | making things printcap specific (we don't use the old termcap code anyway...) We should really just use getcap(3).
* proactive bounds checking; help from millertderaadt1996-10-254-8/+12
|
* Integrated 4.4Lite2 sourcetholo1996-07-045-51/+88
| | | | Fixed potential problem pointed out by bitblt
* from netbsd; {} maniaderaadt1995-11-221-4/+5
|
* lprm failed to delete all files; from thomas@cevis.uni-Bremen.de; netbsd pr#1756deraadt1995-11-132-4/+7
|
* initial import of NetBSD treederaadt1995-10-188-0/+2038