diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2015-02-20 00:11:38 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@parallels.com> | 2015-02-20 00:11:38 +0300 |
commit | bec5a023d1edc32cd8f1584554e22a504cd19148 (patch) | |
tree | d7898311411fc4e58bbf9be1dc8cef6e29216f5f | |
parent | 2ecc25ef5ef1474ca28b06083f2b642dcb996620 (diff) |
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: Saied Kazemi <saied@google.com>
CC: Andrew Vagin <avagin@parallels.com>
CC: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
-rw-r--r-- | include/tty.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tty.h b/include/tty.h index bb01d90d2..918302431 100644 --- a/include/tty.h +++ b/include/tty.h @@ -31,7 +31,7 @@ static inline int tty_type(int major, int minor) { switch (major) { case TTYAUX_MAJOR: - if (minor == 0 || minor == 2) + if (minor == 2) return TTY_TYPE_PTM; else if (minor == 1) return TTY_TYPE_CONSOLE; |