Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2001 03:05:56 -0800 (PST)
From:      WATANABE Yuichi <yuu-w@ascii.co.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/32183: lpd problem.
Message-ID:  <200111221105.fAMB5uF36346@freefall.freebsd.org>

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

>Number:         32183
>Category:       bin
>Synopsis:       lpd problem.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 22 03:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     WATANABE Yuichi
>Release:        FreeBSD 4.4R
>Organization:
ASCII Corp.
>Environment:
FreeBSD oapc13.oa.ascii.co.jp 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Wed Sep 26 16:55:13 JST 2001     root@oapc13.oa.ascii.co.jp:/usr/src/sys/compile/PRTSVR00  i386
>Description:
if
 1) lpd received printing-job request from remote-cliant
and
 2) target-printe is busy
then
 some messages are in /var/log/messages, /var/log/lpd-errs

 lpd[nnnn]: Error receiving job from hostname.com:
 lpd[nnnn]: prt01: ctl_renametf invalid filename: tfB521hostname.com

I made comparison source program of 4.4R with 3.4R.

/usr/src/usr.sbin/lpr/lpd/recvjob.c
 readjob(pp)
 @ case '\2':      /* read cf file */

In the 3.4R,
-----
 if (link(tfname, cp) < 0)
        frecverr("%s: %m", tfname);
 (void) unlink(tfname);
 tfname[0] = '\0';
-----
In the 4.4R
-----
 tfname[0] = '\0';
 if (errmsg != NULL) {
    frecverr("%s: %s", pp->printer, errmsg);
     /*NOTREACHED*/
  /* (void) unlink(tfname); */         /* need !? */
 }
-----

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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




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