*BSD News Article 19596


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!sdd.hp.com!vixen.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!darwin.sura.net!news.udel.edu!udel!newsserv.cs.sunysb.edu!stark.UUCP!cs.sunysb.edu!newsserv!stark!gene
From: newsserv!stark!gene@cs.sunysb.edu (Gene Stark)
Newsgroups: comp.os.386bsd.bugs
Subject: Bug in lpd (FIX)
Date: 17 Aug 93 08:16:26
Organization: Gene Stark's home system
Lines: 44
Distribution: world
Message-ID: <NEWSSERV!STARK!GENE.93Aug17081626@stark.uucp>
NNTP-Posting-Host: stark.uucp

(I mailed this off using "sendbug", but I haven't gotten any reply,
so I don't know if the bug server is still running.  -- Gene Stark)

Subject: Bug in lpd causing -w0 arg to pr
Index: usr.sbin/lpr/lpd/printjob.c 386BSD-0.1.2.4

Description:
	The "pr" filter is always being called by lpd with argument -x0,
	regardless of what it says in /etc/printcap.
Repeat-By:
	Queue a file with "lpr -p"
Fix:
	Apply the following diffs:

*** /usr/src/usr.sbin/lpr/lpd/printjob.c.orig	Tue Apr 30 13:31:23 1991
--- /usr/src/usr.sbin/lpr/lpd/printjob.c	Sat Aug 14 08:08:02 1993
***************
*** 265,273 ****
  	 */
  	for (i = 0; i < 4; i++)
  		strcpy(fonts[i], ifonts[i]);
  	strcpy(width+2, "0");
  	strcpy(indent+2, "0");
! 
  	/*
  	 *      read the control file for work to do
  	 *
--- 265,277 ----
  	 */
  	for (i = 0; i < 4; i++)
  		strcpy(fonts[i], ifonts[i]);
+ /*
+  * I don't know why these are here.  They screw up the printcap
+  * initializations already done by init() -- EWS
+  *
  	strcpy(width+2, "0");
  	strcpy(indent+2, "0");
!  */
  	/*
  	 *      read the control file for work to do
  	 *

--
							stark@cs.sunysb.edu