Commit bec5a023 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

tty: Fix mistyping of /dev/tty

/dev/tty stands for current terminal which we don't yet
implemented a support for.

This is a bugfix for upcoming stable version, the proper
support of /dev/tty is gonna be implemented separately.
Reported-by: 's avatarSaied Kazemi <saied@google.com>
CC: Andrew Vagin <avagin@parallels.com>
CC: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2ecc25ef
...@@ -31,7 +31,7 @@ static inline int tty_type(int major, int minor) ...@@ -31,7 +31,7 @@ static inline int tty_type(int major, int minor)
{ {
switch (major) { switch (major) {
case TTYAUX_MAJOR: case TTYAUX_MAJOR:
if (minor == 0 || minor == 2) if (minor == 2)
return TTY_TYPE_PTM; return TTY_TYPE_PTM;
else if (minor == 1) else if (minor == 1)
return TTY_TYPE_CONSOLE; return TTY_TYPE_CONSOLE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment