summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source/rmjob.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* snprintf/vsnprintf return < 0 on error, rather than -1.deraadt2019-07-031-3/+3
|
* Move prototypes of local functions from lp.h to the .c files and maketb2016-01-121-13/+18
| | | | | | | functions static if possible. Move delay() to lpd/printjob.c and fix an annoying typo. ok deraadt@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+2
| | | | | | | | | 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)
* more ctype cleanupsderaadt2013-11-241-2/+2
| | | | checked by jca
* Change scandir()'s 'select' argument fromguenther2012-11-291-2/+2
| | | | | | | | | int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@
* In preparation for getline and getdelim additions to libc, rename getline()fgsch2012-03-041-4/+4
| | | | | occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | 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
* trailing "\n" not needed in fatal(); ok millert@stevesk2007-04-071-3/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Fix loop invariants in rmremote(). Reported by Arne Woerner in PRmillert2003-02-131-11/+24
| | | | | 3084; different fix used. Hopefully this makes the code in question easier to read. deraadt@ henric@ OK
* Remove setuid root from lp*. lpr needs to be setuid daemon so themillert2002-06-081-28/+44
| | | | | | | | | | | | | | | | 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.
* Pull in useful bits from NetBSD and make our lp* easier to diff andmillert2002-05-201-28/+39
| | | | | | | | | | | | | | | | 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
* 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-161-3/+3
|
* o kill registermillert2001-08-301-10/+10
| | | | | 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.
* buf mishandling; rotel@indigo.iederaadt1998-04-221-6/+6
|
* 1 byte oflows; millertderaadt1997-07-231-3/+3
|
* 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-171-3/+3
|
* Add OpenBSD tagsmillert1997-01-171-0/+6
|
* proactive bounds checking; help from millertderaadt1996-10-251-2/+2
|
* Integrated 4.4Lite2 sourcetholo1996-07-041-3/+3
| | | | Fixed potential problem pointed out by bitblt
* lprm failed to delete all files; from thomas@cevis.uni-Bremen.de; netbsd pr#1756deraadt1995-11-131-1/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+363