Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2000 11:51:57 -0400 (EDT)
From:      aa8vb@ipass.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/18532: rsh does not restore tty state
Message-ID:  <200005131551.LAA04965@rr.com>

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

>Number:         18532
>Category:       bin
>Synopsis:       rsh does not restore tty state
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 13 08:00:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>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?200005131551.LAA04965>