Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2000 12:33:05 +0000
From:      "Steve O'Hara-Smith" <steveo@eircom.net>
To:        stable@freebsd.org
Subject:   Small patch to lpr - comments, review, commit ?
Message-ID:  <20001030123305.23573c0e.steveo@eircom.net>

next in thread | raw e-mail | index | archive | help
	Hi,

	I have found that lpr does not pass the -C parameters to lpd unless
burst header pages are being printed. Unfortunately apsfilter (ab)uses the
-C parameters for printer mode control. The patch below moves pass through of
the -C parameters out of the conditional block. As far as I can see this is
never harmful.

	The patch is against -stable because that is what I am running, I
don't expect -current is very (any) different.

Index: lpr.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/lpr/lpr/lpr.c,v
retrieving revision 1.32.2.1
diff -u -r1.32.2.1 lpr.c
--- lpr.c	2000/06/27 19:55:40	1.32.2.1
+++ lpr.c	2000/10/28 16:27:10
@@ -326,6 +326,7 @@
 	seteuid(uid);
 	card('H', host);
 	card('P', person);
+	card('C', class);
 	if (hdr && !pp->no_header) {
 		if (jobname == NULL) {
 			if (argc == 0)
@@ -335,7 +336,6 @@
 					   ? arg + 1 : argv[0]);
 		}
 		card('J', jobname);
-		card('C', class);
 		card('L', person);
 	}
 	if (format != 'p' && Zflag != 0)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001030123305.23573c0e.steveo>