summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
Commit message (Collapse)AuthorAgeFilesLines
* Stop pac dereferencing a null pointer if accounting is not enabeled.dwmalone2001-02-251-1/+2
| | | | | | PR: 24798 18191 Submitted by: Nick Hilliard <nick@netability.ie> Reviewed by: gad
* mdoc(7) police: Change -filled displays (which just happenru2001-02-071-2/+2
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-012-26/+57
|
* Prepare for mdoc(7)NG.ru2001-01-161-1/+2
|
* Use macro API to <sys/queue.h>phk2000-12-302-7/+7
| | | | | Submitted by: "Jason" <jsmethers@pdq.net> Reviewed by: /sbin/md5
* Prepare for mdoc(7)NG.ru2000-12-276-7/+8
|
* IPv6 support for lpr.ume2000-12-165-142/+303
| | | | | Reviewed by: freebsd-current (no objection) Obtained from: KAME
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-2010-20/+20
|
* Eliminate two compile-time warnings.gad2000-11-151-0/+2
|
* Fix the '-d' option (turns on socket-debugging). Improve startup msgs.gad2000-11-151-10/+17
| | | | | PR: 17178 Submitted by: Richard <satherrl@dssrg.curtin.edu.au>
* Make sure a few strings will have terminating null characters.gad2000-11-151-0/+2
| | | | | | | (most of the PR 16186 was already applied, except for these 2 lines) PR: 16186 Submitted by: Przemyslaw Frasunek <venglin@lubi.FreeBSD.lublin.pl>
* Reset the seteuid in a few obscure error situations.gad2000-11-151-1/+4
|
* Just some style-related improvements.gad2000-11-151-24/+32
|
* Minor style improvements.gad2000-11-141-5/+5
|
* Fix (style) some variable initializations.gad2000-11-141-4/+6
|
* Change 'count' to a more descriptive 'jobcount', and fix the stupidgad2000-11-141-6/+6
| | | | comments which claim this counter is counting "files", which it is not.
* Get rid of 'exit(-1)' calls. Exit codes are limited to 8 bits under mostgad2000-11-141-2/+2
| | | | | | | Unixes, so -1 becomes 0xFF for 2's complement and 0xFE (?) for 1's complement. Reviewed by: bde@FreeBSD.org
* My previous commit removed a line it wasn't supposed to. Add it back.gad2000-11-131-2/+3
|
* Replace call to mktemp() with mkstemp. Also move where that call isgad2000-11-131-17/+43
| | | | | | | | | | done, so the correct directory is being checked. The mkstemp() call is meant to create a temp file for stderrs when running filters. This update also fixes log-file processing for remote (rm=) queues which specify an input filter (if=). Before, filter-errs were thrown away. Now they'll be copied to the queue's logfile (lf=). Reviewed by: (a little) audit@FreeBSD.ORG & freebsd-print@bostonradio.org
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-2/+1
|
* Fix 'printit()' to ignore some lines it doesn't recognize (most likelygad2000-11-082-4/+24
| | | | coming from lprNG hosts), and print a more helpful error msg for others.
* Cosmetic change of a structure name.gad2000-11-065-44/+44
| | | | | | | Turn 'struct queue { q_time, q_name }' (loosely-speaking) into 'struct jobqueue { job_time, job_cfname }' Reviewed by: GAWollman
* Get rid of a minor compile-time warning.gad2000-11-061-2/+2
|
* Cosmetic improvements to a few recvjob-related error messages.gad2000-11-061-18/+35
|
* Fix a format-code, thus getting rid of a compile-time warning msg.gad2000-11-061-1/+1
|
* Fix potential problem processing jobs from hosts with >32 character hostnames.gad2000-11-051-3/+6
| | | | This may fix a problem reported by Juha Ylitalo <juha.o.ylitalo@nokia.com>
* Fix 'lprm' processing so is more likely to work correctly when dealinggad2000-11-051-1/+1
| | | | | | | with long (>32 character) hostnames. PR: 14978 Submitted by: Tatsuya Kudoh <cdr@cosmonet.org>
* In the error-message routine for receiving a job, move the "cleanup" to begad2000-11-051-2/+17
| | | | | | | after the error message is printed, because the error message may refer to variables the "cleanup" routine will zero out. PR: 21007
* This update gets it so 'lpr -r' ("remove the file after printing") willgad2000-11-031-0/+79
| | | | | | | | | | | | | try to move the file from the source to the destination (spool) directory. If that succeeds, much time and disk-space will be saved by doing that instead of copying the entire file only to remove the original. This could be a big win on machines doing samba-service or CAP-based printing. Note that this is about the fourth or fifth iteration of the patch, after trying to address all possible security implications of the change. PR: 16124 Reviewed by: freebsd-current or freebsd-hackers (some time ago)
* Implement new printcap options of sr= (aka stat.recv) and sr= (aka stat.send)gad2000-11-028-11/+393
| | | | | | | | in lpd. Stat.recv is useful on a printserver, as something of a network performance-monitoring tool. Stat.send is a minimal accounting record of sorts for jobs going to tcp/ip based printers. Reviewed by: freebsd-print@bostonradio.org
* Change 'lpr' so -C (class) information is included in the control filegad2000-11-011-1/+1
| | | | | | even for jobs or queues which will not print header (separator) pages. Submitted by: "Steve O'Hara-Smith" <steveo@eircom.net>
* Make the standard 'lpq' output a little more informative when listing jobsgad2000-10-311-12/+39
| | | | | | | which have long names. Instead of just listing '...', try to list some reasonable subset of the name (with a "..." to indicate something missing). Reviewed by: freebsd-print@bostonradio.org (only a little review)
* Fix 'lpq' so it can correctly display jobs which come from hosts usinggad2000-10-311-9/+44
| | | | | | 'lprNG' (which writes control-lines in a different order than our lpr). Reviewed by: freebsd-print@bostonradio.org
* Change my email on MAINTAINER from an RPI address to my FreeBSD address.gad2000-10-301-1/+1
|
* Fix cosmetic error in rmjob message.wollman2000-09-271-2/+0
| | | | PR: 21006
* Set SO_REUSEADDR so that lpd can start while old lpd connections are stillwollman2000-09-271-2/+15
| | | | | | | winding down (or timing out). Also, be slightly more informative in mcleanup() about why lpd is exiting. PR: 21595
* the code assumes that getgroups() always returns NGROUPS groups, howeveralfred2000-08-231-2/+4
| | | | | | | that is not true. Instead of looping NGROUPS times, get the return value from getgroups() and loop over the return that many times. Noticed by: David A. Holland <dholland@eecs.harvard.edu>
* Admin some amount of responsibility for the current state of lpr/lpd.wollman2000-07-151-0/+3
| | | | | Also add Garance Drosihn who has been doing a great deal of work on print systems.
* Quit on EOF from terminal instead of redisplaying the prompt.mph2000-06-301-1/+1
|
* Fix description of `-i' and `-w' options.wollman2000-06-271-23/+34
| | | | | | Fix spelling of `TeX'. Move historical formats into a separate list, to make thier cruftiness clear.
* Allow Nm to expand gracefully instead of hard-coding an argument.sheldonh2000-06-221-2/+2
|
* Allow those of us who have to print through LPRng spoolers to sendwollman2000-06-212-7/+64
| | | | spooler options using `Z' control-file lines and the `-Z' flag.
* Back out the previous change to the queue(3) interface.jake2000-05-262-8/+8
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Remove the lpr/runqueue directory and associated files.mpp2000-05-244-3014/+0
| | | | | | These are not used anymore and are outdated and only cause confusion (I just committed a fix to one of these files within the last hour, thinking it was still valid).
* Re-implement my fix from rev 1.6 (same rev for both files being committed)mpp2000-05-242-2/+20
| | | | | | | that was lost during the lite-2 merge. From the original commit message: Initialize the group list so that any filter programs that are run by lpd are not run with root's groups.
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-232-8/+8
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* This appears to have been repo-copied to lpd a while ago and neverimp2000-05-091-375/+0
| | | | | deleted here. Diff shows there is only one change to this file, which matches the repo histories.
* Print files submitted at the same instant in deterministic order.wollman2000-05-031-5/+20
| | | | | PR: 18361 Submitted by: Garance A Drosehn <gad@freefour.acs.rpi.edu>
* Add -p option to prevent lpd(8) from opening a listening socket.sheldonh2000-03-292-17/+32
| | | | | PR: 17384 Submitted by: Niels Endres <niels@b5.nu>
* Remove blanks lines, replacing them with Pp macros where appropriate.sheldonh2000-03-081-2/+1
|
OpenPOWER on IntegriCloud