summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-193-6/+3
|
* Fix additional warnings. Remove -Werror, since some people have complainedwollman1998-09-1117-38/+49
| | | | | | | about it. PR: 7886 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> (partially)
* Fix ``lp=port@machine'' syntax and mention it in printcap(5).brian1998-08-212-3/+14
|
* Remove -Werror from CFLAGS on i386 because with -nostdinc gcc spitsjb1998-06-113-14/+3
| | | | | warnings from unused static inline functions in headers if you happen to set CFLAGS without -O.
* Spelling fixes.phk1998-06-101-2/+2
| | | | | | PR: 6903 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
* The printf type checking in gcc wants %qd to be a long long, so addjb1998-05-131-2/+2
| | | | a cast in case off_t is not a long long (as on alpha).
* Make -Werror i386 specific because -nostinc on alpha spits warningsjb1998-05-133-6/+17
| | | | for unused static inline functions in header files.
* Make ``-h'' follow the manpage, and suppress the burst page reguardless ofobrien1998-04-171-3/+3
| | | | the number of ``-h'' given.
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-232-4/+4
|
* Cast an argument to int for a printf field width the way that gccjb1998-03-221-2/+2
| | | | | prefers it. This source is compiled with -Werror so the slightest warning is enough to ruin my day.
* Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internalbde1998-03-0710-36/+35
| | | | | | | | | | libraries so that `ld -f' in can create correct dependencies for yet-to-be-built libraries. Get the default BINDIR correctly (by including ../Makefile.inc recursively. Override the default it it is wrong. Don't override defaults when the defaults are correct.
* Add DESTDIR to afterinstallache1998-02-241-1/+1
| | | | Submitted by: jhay
* Oops, back out DESTDIR addition, handled automatically by bsd.prog.mkache1998-02-241-1/+1
|
* Add missing DESTDIRache1998-02-231-1/+1
|
* Install printcap.5 from here.wollman1998-02-041-1/+2
|
* Add comment describing settingsache1998-02-041-3/+10
| | | | Use 66 lines on the page
* Add Russian printer filters, mandatory because hardware code page 866ache1998-02-045-2/+273
| | | | is different with KOI8-R
* Properly initialize the printer struct.wollman1998-01-201-1/+2
| | | | PR: bin/5519
* Fix top-of-form bogon.wollman1997-12-271-2/+2
|
* Add -Wno-unused so that ``make world'' can complete successfully.wollman1997-12-172-4/+4
| | | | | | GCC suppresses the warning for ``standard'' header files, but since the headers do not come from the ``standard'' place in a ``make world'', GCC doesn't get it.
* Fixed DPADD.bde1997-12-167-7/+14
|
* Fix incorrect format string in call to errx().jdp1997-12-061-2/+2
|
* Add missing argument to warn() call.jdp1997-12-061-2/+2
|
* Document the new long names for printcap capabilities.wollman1997-12-021-1/+44
|
* Mega lpd/lpd upgrade, part I:wollman1997-12-0243-1921/+2896
| | | | | | | | | | | | | | | - Get rid of a lot of the static variables which were shared by many routines and programs in the suite. - Create an abstract interface to the printcap database, so that other retrieval and iteration mechanisms could be developed (e.g., YP, Hesiod, or automatic retrieval from a trusted server). - Give each capability a human-readable name in addition to the historic two-character one. - Otherwise generally clean up a lot of dark corners. Many still remain. - When submitting jobs, use the official login name record (from getlogin()) if there is one, rather than reverse-mapping the uid. More to come...
* Argl! Who's got the pointy hat these days? Hand it over to me, ASAP!joerg1997-11-073-0/+5
| | | | | When setting an alarm that didn't trigger, i gotta clear it again before going on. Hmpf!
* One could be surprised how much bugs can still be found here...joerg1997-10-151-2/+3
| | | | | | | | | | | | Properlay clean the global RM variable if cgetstr() failed for it. Otherwise, a connection attempt to a remote machine was made (and a bogus result code printed) if a local printer followed a remote one in printcap, and you did a `lpq -a', since checkremote() falsely assumed the printer to be a remote one. While i was at it, removed a gratuituous newline printed in front of the remote machine's name, thus making the output more consistent (and better machine-parseable) now.
* Improve my hack from rev 1.6 of displayq.c, and make the TCPjoerg1997-10-148-3/+56
| | | | | | | | connection timeout controllable by a new printcap(5) capability named `ct' (connectiom timeout), defaulting to 120 seconds (which is the default TCP connection timeout). Would anybody see a problem with merging all this into RELENG_2_2?
* Be more paranoid about unlinking files. From mhpower@MIT.EDU by way ofimp1997-10-062-8/+12
| | | | | | | Theo de Raadt. Likely 2.2.5R candidate. Obtained from: OpenBSD
* Use err(3). Add usage(). Various fixes in man pages.charnier1997-09-2417-101/+126
|
* environmental -> environment.charnier1997-09-181-2/+2
|
* common_source: staticize private version of warn() so to not conflictjoerg1997-08-234-26/+55
| | | | | | | | | with libc's version. lpd: use getopt(3), err(3), add usage(), allow specification of a port # on the command line as the documentation suggested for more than 10 years. PR: docs/3290
OpenPOWER on IntegriCloud