[Bug 282] ttymodes sent can be invalid

Kevin Steves kevin at atomicgears.com
Thu Aug 8 08:46:49 EST 2002


who can dig into this issue?  can someone raise it on linux-kernel (or
whatever makes sense)?

On Sat, Jun 22, 2002 at 04:48:35PM +1000, bugzilla-daemon at mindrot.org wrote:
> 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.
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev



More information about the openssh-unix-dev mailing list