[CRIU] [PATCH] tty: Fix mistyping of /dev/tty

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 18 04:58:21 PST 2015


/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 at google.com>
CC: Andrew Vagin <avagin at parallels.com>
CC: Pavel Emelyanov <xemul at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/tty.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tty.h b/include/tty.h
index bb01d90d22a0..918302431fcb 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;
-- 
1.9.3



More information about the CRIU mailing list