pty: If the administrator creates a device for a ptmx slave we should not error
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:41:03 +0000 (10:41 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:42 +0000 (09:51 -0700)
commit15582d36a15978355d2168eaa018a3736db7281f
tree6ea2b94bb4504cf0d8dffdecbd85a60fe0d69c06
parentdbda4c0b97b18fd59b3964548361b4f92357f730
pty: If the administrator creates a device for a ptmx slave we should not error

The open path for ptmx slaves is via the ptmx device. Opening them any
other way is not allowed. Vegard Nossum found that previously this was not
the case and mknod foo c 128 42; cat foo would produce nasty diagnostics

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c