From nobody@FreeBSD.org  Tue Feb 20 22:38:35 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 22D0337B4EC
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Feb 2001 22:38:35 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f1L6cZP84991;
	Tue, 20 Feb 2001 22:38:35 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102210638.f1L6cZP84991@freefall.freebsd.org>
Date: Tue, 20 Feb 2001 22:38:35 -0800 (PST)
From: ywata@st.rim.or.jp
To: freebsd-gnats-submit@FreeBSD.org
Subject: termcap and printcap interference
X-Send-Pr-Version: www-1.0

>Number:         25244
>Category:       bin
>Synopsis:       termcap and printcap interference
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 20 22:40:02 PST 2001
>Closed-Date:    Wed Jan 16 15:10:54 PST 2002
>Last-Modified:  Wed Jan 16 15:11:12 PST 2002
>Originator:     Yasuhiko WATANABE
>Release:        4.2-STABLE
>Organization:
>Environment:
FreeBSD ross.codec.mrit.mei.co.jp 4.2-STABLE FreeBSD 4.2-STABLE #7 Wed Feb 21 10+28+53 JST 2001    yasu@rosso.codec.mrit.mei.co.jp:/export/FreeBSD/STABLE/src/sys/compile/DESKTOP   i386
>Description:
When you restart all the printer with lpc's "restart all" command and your environment defines TERMCAP, lpc tries to restart your $TERM entriy.
It is because lpc first tries to initialize your terminal and the initialization cause to set toprec(defined in libc/gen/getcap.c) which is declared as static variable. And then lpc read printcap entries through the same interface in which toprec is already defined.
>How-To-Repeat:
(1) In your shell environment, define TERM and TERMCAP appropriately.
(2) Use "restart all" command in lpc.
Lpc tries to restart undefined $TERM entry.

>Fix:

>Release-Note:
>Audit-Trail:

From: Jonathan Chen <jon@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, ywata@st.rim.or.jp
Cc:  
Subject: Re: bin/25244: termcap and printcap interference
Date: Sun, 2 Sep 2001 19:46:17 -0400

 I cannot duplicate this on a -STABLE system.  Is this still a problem?
 
 -Jon
State-Changed-From-To: open->closed 
State-Changed-By: ashp 
State-Changed-When: Wed Jan 16 15:10:54 PST 2002 
State-Changed-Why:  
I'm also unable to reproduce this.  Plus, feedback timeout. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25244 
>Unformatted:
