Bug 25244

Summary: termcap and printcap interference
Product: Base System Reporter: ywata <ywata>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description ywata 2001-02-21 06:40:02 UTC
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.
Comment 1 Jonathan Chen freebsd_committer freebsd_triage 2001-09-03 00:46:17 UTC
I cannot duplicate this on a -STABLE system.  Is this still a problem?

-Jon
Comment 2 ashp freebsd_committer freebsd_triage 2002-01-16 23:10:54 UTC
State Changed
From-To: open->closed

I'm also unable to reproduce this.  Plus, feedback timeout.