[Bug 282] ttymodes sent can be invalid

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jun 22 16:48:35 EST 2002


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





------- Additional Comments From stuge-openssh-bugzilla at cdy.org  2002-06-22 16:48 -------
/usr/src/linux/drivers/char/pty.c:345 reads

static void pty_set_termios(struct tty_struct *tty, struct termios *old_termios)
{
        tty->termios->c_cflag &= ~(CSIZE | PARENB);
        tty->termios->c_cflag |= (CS8 | CREAD);
}

This gets called when someone does tcsetattr() on a pty.  I think I can see a
reason for clearing CSIZE and setting CS8|CREAD, but why clear PARENB?

And in the glibc code quoted by Kevin this behaviour is referred to as if it
should return some error contrary to the current 'silently ignore' approach..

What do kernel gurus on/from LKML say?




------- 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