From rhh@ipass.net  Sun Mar 26 20:26:36 2000
Return-Path: <rhh@ipass.net>
Received: from charon.ipass.net (charon.ipass.net [198.79.53.8])
	by hub.freebsd.org (Postfix) with ESMTP id 15C9637BB32
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Mar 2000 20:26:35 -0800 (PST)
	(envelope-from rhh@ipass.net)
Received: from stealth.ipass.net. (ppp-1-253.dialup.rdu.ipass.net [209.170.132.253])
	by charon.ipass.net (8.9.3/8.9.3) with ESMTP id XAA04663
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Mar 2000 23:26:32 -0500 (EST)
Received: (from rhh@localhost)
	by stealth.ipass.net. (8.9.3/8.8.8) id XAA75567
	for FreeBSD-gnats-submit@freebsd.org; Sun, 26 Mar 2000 23:29:12 -0500 (EST)
	(envelope-from rhh)
Message-Id: <20000326232912.A74045@ipass.net>
Date: Sun, 26 Mar 2000 23:29:12 -0500
From: Randall Hopper <aa8vb@ipass.net>
Sender: rhh@ipass.net
To: FreeBSD-gnats-submit@freebsd.org
In-Reply-To: <200003270152.UAA35795@stealth.ipass.net.>; from aa8vb@ipass.net on Sat, May 13, 2000 at 08:52:05PM -0500
Subject: Re: rsh does not restore tty state
References: <200003270152.UAA35795@stealth.ipass.net.>

>Number:         18532
>Category:       bin
>Synopsis:       rsh does not restore tty state
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 13 08:00:00 PDT 2000
>Closed-Date:    Sat Feb 9 13:09:04 PST 2002
>Last-Modified:  Sun Mar 17 00:41:55 UTC 2013
>Originator:     Randall Hopper
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
self
>Environment:

	Stock 3.4-RELEASE.

>Description:

	When rsh is invoked, it changes the tty state, and does not
        restore the original values on exit.

>How-To-Repeat:

    "stty -ixon" 
    "rsh <host>" (successful or failed login, it makes no difference, 
                  to the local machine for example).
    "stty -a"    and observe that ixon is now enabled.

    Example session:

    stealth : ~ > stty -a
    speed 9600 baud; 47 rows; 80 columns;
    lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
            -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
            -extproc
    iflags: -istrip icrnl -inlcr -igncr -ixon -ixoff ixany imaxbel ignbrk
            brkint -inpck -ignpar -parmrk
    oflags: opost onlcr -oxtabs
    cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
            -dtrflow -mdmbuf
    cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
            eol2 = <undef>; erase = ^H; intr = ^C; kill = ^?; lnext = ^V;
            min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
            stop = ^S; susp = ^Z; time = 0; werase = ^W;

    stealth : ~ > rsh -l abc stealth
    Password:
    Login incorrect
    login: rlogin: connection closed.

    stealth : ~ > 

    stealth : ~ > stty -a
    speed 9600 baud; 47 rows; 80 columns;
    lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
            -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
            -extproc
    iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel ignbrk
            brkint -inpck -ignpar -parmrk
    oflags: opost onlcr -oxtabs
    cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
            -dtrflow -mdmbuf
    cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
            eol2 = <undef>; erase = ^H; intr = ^C; kill = ^?; lnext = ^V;
            min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
            stop = ^S; susp = ^Z; time = 0; werase = ^W;

>Fix:
	
	Unknown.  Currently I have to reset the tty state manually
        (stty -ixon, etc.)


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bsd 
State-Changed-When: Sat Feb 9 13:09:04 PST 2002 
State-Changed-Why:  
I just tested this on the latest -STABLE and the problem does not 
reproduce, closing. 

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