[PATCH 10/21] [terminal] don't treat ttySx as VT
Scott James Remnant
scott at ubuntu.com
Wed Mar 17 21:34:31 PDT 2010
Only devices with TTY_MAJOR and minor from 0-63 are VTs, 64 onwards
are serial consoles.
---
src/libply-splash-core/ply-terminal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libply-splash-core/ply-terminal.c b/src/libply-splash-core/ply-terminal.c
index 3e54075..8f76ff0 100644
--- a/src/libply-splash-core/ply-terminal.c
+++ b/src/libply-splash-core/ply-terminal.c
@@ -292,7 +292,7 @@ ply_terminal_check_for_vt (ply_terminal_t *terminal)
major_number = major (file_attributes.st_rdev);
minor_number = minor (file_attributes.st_rdev);
- if (major_number == TTY_MAJOR)
+ if ((major_number == TTY_MAJOR) && (minor_number < 64))
terminal->vt_number = minor_number;
else
terminal->vt_number = -1;
--
1.7.0
More information about the plymouth
mailing list