Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove some debugging code | 2002-06-08 | 1 | -7/+2 | ||
| | ||||||
* | Remove setuid root from lp*. lpr needs to be setuid daemon so the | 2002-06-08 | 6 | -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() | 2002-05-28 | 1 | -3/+2 | ||
| | ||||||
* | Pull in useful bits from NetBSD and make our lp* easier to diff and | 2002-05-20 | 7 | -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. | 2002-02-19 | 1 | -18/+4 | ||
| | ||||||
* | Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree) | 2002-02-17 | 1 | -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. | 2002-02-16 | 3 | -30/+30 | ||
| | ||||||
* | use err/warn and friends instead of printf/exit. | 2001-12-06 | 3 | -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 hack | 2001-11-23 | 3 | -12/+51 | ||
| | | | | a global into the other programs since they share some source. | |||||
* | displayq to honor the terminal width; millert@ ok | 2001-11-01 | 2 | -14/+27 | ||
| | ||||||
* | o kill register | 2001-08-30 | 4 | -36/+36 | ||
| | | | | | o add const to rcsid and copyright strings o placate -Wall | |||||
* | Better buffer lengths (MAXFOO and FOO_MAX) based on a patch from | 2001-08-30 | 1 | -3/+3 | ||
| | | | | ianm@cit.uws.edu.au. | |||||
* | Use NAME_MAX, not MAXPATHLEN for buffer sizes since they are not | 2001-08-30 | 1 | -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, crank | 2001-08-29 | 1 | -9/+15 | ||
| | | | | the size of buffers that can hold filenames to MAXPATHLEN. | |||||
* | use strlcpy vs strncpy+a[len-1]='\0' | 2001-06-22 | 1 | -4/+3 | ||
| | ||||||
* | another euid mixup; wiz@danbala.ifoer.tuwien.ac.at | 2001-04-05 | 1 | -4/+6 | ||
| | ||||||
* | missung euid swapout; j@ida.interface-business.de | 2001-04-04 | 1 | -3/+5 | ||
| | ||||||
* | Treat a printer as remote iff RM is not us or RP is set and it doesn't match the | 1998-06-28 | 1 | -2/+17 | ||
| | | | | current printer;dwmalone@maths.tcd.ie | |||||
* | Fix snprintf return value usage. | 1998-06-23 | 1 | -4/+4 | ||
| | ||||||
* | buf mishandling; rotel@indigo.ie | 1998-04-22 | 1 | -6/+6 | ||
| | ||||||
* | be more paranoid. | 1998-02-27 | 1 | -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 printer | 1998-02-15 | 1 | -3/+6 | ||
| | | | | dies. | |||||
* | #if __STDC__ --> #ifdef __STDC__ | 1997-07-25 | 1 | -5/+5 | ||
| | ||||||
* | inet_aton() returns 0 on error, not -1. | 1997-07-24 | 1 | -3/+3 | ||
| | ||||||
* | 1 byte oflows; millert | 1997-07-23 | 2 | -7/+7 | ||
| | ||||||
* | Wall cleanup; people running lpd should test! | 1997-07-19 | 1 | -4/+4 | ||
| | ||||||
* | Be extra careful when unlinking data file to only remove a file is | 1997-07-18 | 1 | -2/+4 | ||
| | | | | it is in the current dir and df*. From imp@openbsd.org. | |||||
* | Wall | 1997-07-17 | 2 | -6/+6 | ||
| | ||||||
* | It is not a reasonable default behavior to abort a printout because of its | 1997-06-23 | 1 | -2/+2 | ||
| | | | | size now that there's PostScript[tm]. | |||||
* | Add OpenBSD tags | 1997-01-17 | 6 | -0/+24 | ||
| | ||||||
* | Possible buf oflow. | 1997-01-17 | 1 | -3/+10 | ||
| | ||||||
* | lpr suite uses getcap(3) so this is never used! | 1996-11-05 | 1 | -327/+0 | ||
| | ||||||
* | Remove dead code as pointed out by bitblt. Also nuke the gross #defines, | 1996-11-04 | 1 | -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 millert | 1996-10-25 | 4 | -8/+12 | ||
| | ||||||
* | Integrated 4.4Lite2 source | 1996-07-04 | 5 | -51/+88 | ||
| | | | | Fixed potential problem pointed out by bitblt | |||||
* | from netbsd; {} mania | 1995-11-22 | 1 | -4/+5 | ||
| | ||||||
* | lprm failed to delete all files; from thomas@cevis.uni-Bremen.de; netbsd pr#1756 | 1995-11-13 | 2 | -4/+7 | ||
| | ||||||
* | initial import of NetBSD tree | 1995-10-18 | 8 | -0/+2038 | ||