From nobody Tue Jun 17 06:33:09 1997 Received: (from nobody@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA15004; Tue, 17 Jun 1997 06:33:09 -0700 (PDT) Message-Id: <199706171333.GAA15004@hub.freebsd.org> Date: Tue, 17 Jun 1997 06:33:09 -0700 (PDT) From: miyata@bioele.nuee.nagoya-u.ac.jp To: freebsd-gnats-submit@freebsd.org Subject: LPD can't receive printer jobs from remote host X-Send-Pr-Version: www-1.0 >Number: 3889 >Category: bin >Synopsis: LPD can't receive printer jobs from remote host >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 17 06:40:00 PDT 1997 >Closed-Date: Wed Jul 16 04:23:02 PDT 1997 >Last-Modified: Wed Jul 16 04:23:24 PDT 1997 >Originator: Yujiro MIYATA >Release: 2.2.1-RELEASE >Organization: Nagoya University, Japan >Environment: FreeBSD hercules.bioele.nuee.nagoya-u.ac.jp 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Fri Jun 13 05:25:21 JST 1997 root@hercules.bioele.nuee.nagoya-u.ac.jp:/usr/src/sys/compile/HERCULES i386 >Description: LPD can't receive print jobs from remote host whose hostname is longer than 35bytes. Because, in /usr/src/usr.sbin/lpr/lpd/recvjob.c, the tmp filename buffer ``dfname'' and ``tfname'' are 40bytes. >How-To-Repeat: Always. >Fix: I changed the size of ``dfname'' and ``tfname', and the problem disappeared. 68c68 < static char dfname[40]; /* data files */ --- > static char dfname[256]; /* data files */ 71c71 < static char tfname[40]; /* tmp copy of cf before linking */ --- > static char tfname[256]; /* tmp copy of cf before linking */ >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: phk State-Changed-When: Wed Jul 16 04:23:02 PDT 1997 State-Changed-Why: committed your fix, thank you! >Unformatted: