From owner-cvs-all Wed Jan 19 6:25:13 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 8A77D14F85; Wed, 19 Jan 2000 06:25:10 -0800 (PST) (envelope-from joe@FreeBSD.org) Received: (from joe@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA28874; Wed, 19 Jan 2000 06:25:10 -0800 (PST) (envelope-from joe@FreeBSD.org) Message-Id: <200001191425.GAA28874@freefall.freebsd.org> From: Josef Karthauser Date: Wed, 19 Jan 2000 06:25:09 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/lpr lpr.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk joe 2000/01/19 06:25:09 PST Modified files: usr.sbin/lpr/lpr lpr.c Log: It's not been possible to configure a print server running lpd, 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 Revision Changes Path 1.32 +2 -2 src/usr.sbin/lpr/lpr/lpr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message