summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add missing description for the dummy -o option.sheldonh2000-03-081-0/+5
|
* Add a dummy -s option for SUSv2 compatibility.sheldonh2000-03-082-2/+11
| | | | | | PR: 17256 Reported by: Brooks Davis <brooks@one-eyed-alien.net> Approved by: jkh (release engineer)
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-014-11/+22
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Type-o, change from[...] = 0 to fromb[...] = 0. The incorrect bufferdillon2000-01-251-1/+1
| | | | | | | | | was having its last element zero'd. It turns out not to be a security hole or to have any real effect on the code because 'from' was previously pointing to a buffer of the same size as 'fromb', and the last element in fromb is already 0 anyway due to the use of sizeof(fromb)-1 in the strncpy() call. But I'm not pressing my luck so only the type-o is being fixed.
* 'start' command was not reenabling printing.dillon2000-01-241-3/+4
| | | | PR: bin/15728
* It's not been possible to configure a print server running lpd,joe2000-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | with remote hosts feeding it, so that some hosts have their header pages supressed and some don't. This is because lpd doesn't know how to rewrite a print job before forwarding it to a remote lpd. In particular this causes problems with p rinters that contain their own lpd, eg. HP jet direct cards, because they can't suppress headers. It's not possible to have headers supressed by putting 'sh' in any printcap in the lpd chain, it is up to the originating lpr to have a '-h' option specified at run time. Lpr has been modified to allow _it_ to honour the 'sh' flag in the local print cap. This allows the administrator to switch off headers for a particular printer (on a particular host) irrespective of whether that printer is local to the machine or remote. This doesn't break anything, because in the case of a remote printer the 'sh' flag would have had no meaning, in the case of the local printer it would have been on anyway. Submitted by: Scott James Remnant <scott@pavilion.net>
* Add support for pr's localeache1999-11-304-11/+46
|
* moved to koi2altache1999-09-231-101/+0
|
* Add koi2855 filterache1999-09-215-3/+121
| | | | Repository move koi2alt.c -> koi2alt/koi2alt.c required
* Correct spelling : ascii -> ASCIIphantom1999-09-201-1/+1
| | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp
* $Id$ -> $FreeBSD$peter1999-08-2851-51/+51
|
* Fix some cut and paste damage.mdodd1999-08-201-2/+2
| | | | Noticed by: Norman C. Rice <nrice@emu.sourcee.com>
* What the heck was I thinking? Nobody else saw this? Sheesh.mdodd1999-08-201-3/+5
| | | | | | | | | | (num > MAX) ? MAX : num rather than (MAX > num) ? MAX : num Also, make things a little easier to read while I'm here.
* Use el_source() so we pick up .editrcmdodd1999-08-191-1/+2
|
* Add support for command line editing and history.mdodd1999-08-192-26/+47
| | | | | | | | Remove src/contrib/bind/bin/nslookup/commands.c as it is generated by lex from commands.l. Submitted by: lpc/cdcontrol patches originally by msmith. Reviewed by: msmith (in theory)
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-126-0/+6
| | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* lpd tries to be clever and checks if RM == my_hostname.jkh1999-04-273-3/+25
| | | | | | | | | However, it doesn't check if the remote printer name it is sending it to is the same as the local printer name, and so chokes 'cos "laser" is not a real printer. PR: 7081 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Sigh. Fix capitalization bogon. Who had the pointy hat?wollman1999-02-021-2/+2
|
* Observe -U flag again, and use it in preference to getlogin(), ifwollman1999-02-011-4/+11
| | | | | | | the user is privileged. I believe this should address both concerns in PR 9729, and may also provide the desired behavior from PR 9485.
* Change my mind on using base '0' for strtol for -i and -# operationsimp1999-01-061-3/+3
| | | | as this would change the meaning of -#050 in preexisting scripts.
* Add sanity checking to argument for -# and -i. Require theseimp1999-01-061-4/+8
| | | | | | | | | | arguments to be numbers. Also use '0' base to allow hex, octal or decimal numbers. This was done by me based on ideas in pr 3556, submitted by Uwe Laubenstein and commented upon by j@uriah.heep.sax.de (J Wunsch). PR: 3556
OpenPOWER on IntegriCloud