summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-08-23 15:02:44 +0000
committerJeremy Katz <katzj@redhat.com>2005-08-23 15:02:44 +0000
commit16f362dac41ba8bbedc772dcfdb6d49b4220a3ea (patch)
tree0caf223981ea445e25b5ced0e7e27a076681a494 /isys
parent3f9d7de707923ed7b42042dea545cc63e6da5b00 (diff)
downloadanaconda-16f362dac41ba8bbedc772dcfdb6d49b4220a3ea.tar.gz
anaconda-16f362dac41ba8bbedc772dcfdb6d49b4220a3ea.tar.xz
anaconda-16f362dac41ba8bbedc772dcfdb6d49b4220a3ea.zip
2005-08-23 Jeremy Katz <katzj@redhat.com>
* isys/isys.c: We don't use /dev/ptyp* anymore, so our pty major is different. Check for the range to fix getting a shell with telnet installs (#165437)
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/isys.c b/isys/isys.c
index 66fce0e78..c1aa8e934 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -1243,7 +1243,7 @@ static PyObject * doisPsudoTTY(PyObject * s, PyObject * args) {
fstat(fd, &sb);
/* XXX close enough for now */
- return Py_BuildValue("i", (major(sb.st_rdev) == 3));
+ return Py_BuildValue("i", ((major(sb.st_rdev) >= 136) && (major(sb.st_rdev) <= 143)));
}
static PyObject * doisVioConsole(PyObject * s) {