[Bug 1025] Does not correctly send/parse disabled special character in ttymodes

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Apr 21 20:29:20 EST 2005


http://bugzilla.mindrot.org/show_bug.cgi?id=1025

           Summary: Does not correctly send/parse disabled special character
                    in ttymodes
           Product: Portable OpenSSH
           Version: 4.0p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: jacobn+mindrot at chiark.greenend.org.uk


When sending terminal modes in a pty request, SSH-1 and SSH-2 both 
specify a portable representation for a disabled special character, 
being the value 255. However, ttymodes.c just copies the local 
representation onto the wire and back again.

So OpenSSH interoperates with itself between homogeneous platforms, 
but not with conforming implementations; for instance, from another 
client to OpenSSH on Linux (where _POSIX_VDISABLE appears to be '\0'):

client$ stty -a
[...] eol = <undef>; eol2 = <undef>; [...]

server$ stty -a
[...] eol = M-^?; eol2 = M-^?; [...]

The attached patch against 4.0p1 fixes this for systems where 
_POSIX_VDISABLE is defined. Compiled and tested on Linux.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list