aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2000-01-19 14:25:08 +0000
committerJosef Karthauser <joe@FreeBSD.org>2000-01-19 14:25:08 +0000
commit7fcba9044d5b5586241ae011eda4ac0797b5494d (patch)
treeab492c00a169c0ccbf784bace21b758732b0005d /usr.sbin
parent4720c83e4d109d9595b2ae954b2b783014b5334f (diff)
downloadsrc-7fcba9044d5b5586241ae011eda4ac0797b5494d.tar.gz
src-7fcba9044d5b5586241ae011eda4ac0797b5494d.zip
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 <scott@pavilion.net>
Notes
Notes: svn path=/head/; revision=56287
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpr/lpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index 6a1a099603bc..1cdb374ed02b 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -320,7 +320,7 @@ main(argc, argv)
seteuid(uid);
card('H', host);
card('P', person);
- if (hdr) {
+ if (hdr && !pp->no_header) {
if (jobname == NULL) {
if (argc == 0)
jobname = "stdin";