From roam@orbitel.bg  Sun Apr 15 10:52:34 2001
Return-Path: <roam@orbitel.bg>
Received: from ringworld.nanolink.com (diskworld.nanolink.com [195.24.48.189])
	by hub.freebsd.org (Postfix) with SMTP id 0D69037B440
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 15 Apr 2001 10:52:32 -0700 (PDT)
	(envelope-from roam@orbitel.bg)
Received: (qmail 3171 invoked by uid 1000); 15 Apr 2001 17:51:02 -0000
Message-Id: <20010415175102.3170.qmail@ringworld.nanolink.com>
Date: 15 Apr 2001 17:51:02 -0000
From: Peter Pentchev <roam@orbitel.bg>
Reply-To: Peter Pentchev <roam@orbitel.bg>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: RELENG_4 ssh/sshd modifies the 'erase' character
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         26602
>Category:       bin
>Synopsis:       RELENG_4 ssh/sshd modifies the 'erase' character
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 15 11:00:03 PDT 2001
>Closed-Date:    Fri Jun 14 06:41:22 PDT 2002
>Last-Modified:  Fri Jun 14 06:41:22 PDT 2002
>Originator:     Peter Pentchev
>Release:        FreeBSD 4.3-RC i386
>Organization:
Orbitel JSCo.
>Environment:
FreeBSD ringworld.oblivion.bg 4.3-RC #49: Wed Apr 11 18:39:08 EEST 2001

>Description:

When I log in on a virtual console, stty -a shows ^H as the erase character.
When I ssh to the same or different RELENG_4 machine, stty -a still shows ^H
as the 'erase2' char, but the 'erase' char is ^?.

>How-To-Repeat:

Script started on Sun Apr 15 20:48:19 2001
[roam@ringworld:p0 ~]$ stty -a | fgrep -w erase
	eol2 = <undef>; erase = ^H; erase2 = ^H; intr = ^C; kill = ^U;
[roam@ringworld:p0 ~]$ ssh -t ringworld 'stty -a | fgrep -w erase'
roam@ringworld's password: 
	eol2 = <undef>; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
Connection to ringworld closed.
[roam@ringworld:p0 ~]$ exit
exit

Script done on Sun Apr 15 20:48:36 2001

Subtly annoying ;)

>Fix:

No idea.. I tried tracing the ssh client, substituting all calls to tcsetattr()
with calls to a new wrapper function, so I can place breakpoints - nothing.
It seems the problem is with the server, somewhere along the login procedure..
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Fri Jun 14 06:40:31 PDT 2002 
State-Changed-Why:  
This seems to have been fixed sometime after 4.3-RELEASE; it certainly 
does not happen with 4.6-RC :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26602 
>Unformatted:
