[Bug 282] New: ttymodes sent can be invalid

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jun 22 02:21:27 EST 2002


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

           Summary: ttymodes sent can be invalid
           Product: Portable OpenSSH
           Version: -current
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Miscellaneous
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: todd at openbsd.org


I noticed that when logging into a Linux machine with current that there is a message in the system log: 
 sshd[21992]: Setting tty modes failed: Invalid argument 
 
After some debugging it came down to the realization that perhaps (thanks djm@) the modes 
being sent from OpenBSD are not valid on Linux. 
 
I'm not sure how to resolve this, or if this is a major problem, but it appears that since the 
mode settings failed, perhaps something ssh needed might not be set, or might be set wrong.  I 
added a log message: 
 
        /* Set the new modes for the terminal. */ 
        if (tcsetattr(fd, TCSANOW, &tio) == -1) { 
                log("Setting tty modes failed: %.100s", strerror(errno)); 
                log("failed..: %d, %d, %d, %d, %d", fd, 
                        tio.c_iflag, tio.c_oflag, tio.c_cflag, tio.c_lflag); 
        } 
 
And notice that the system logged the following the next time through: 
 
	Setting tty modes failed: Invalid argument 
	failed..: 10, 1280, 5, 447, 51771 
 
and tried again and only the fd changed: 
 
	Setting tty modes failed: Invalid argument 
	failed..: 8, 1280, 5, 447, 51771 
 
Hopefully this information is useful.



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



More information about the openssh-unix-dev mailing list