Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2001 22:38:35 -0800 (PST)
From:      ywata@st.rim.or.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/25244: termcap and printcap interference
Message-ID:  <200102210638.f1L6cZP84991@freefall.freebsd.org>

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

>Number:         25244
>Category:       bin
>Synopsis:       termcap and printcap interference
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 20 22:40:02 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>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?200102210638.f1L6cZP84991>