diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-07-31 21:04:41 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-07-31 21:04:41 +0000 |
commit | 750f6e835ed306c059f7d301060b0566df64f273 (patch) | |
tree | 09f8b27671d9055d42c81128fd08cfefd696a1c2 /isys | |
parent | cd7b4cd5edc2f0984f1e81808a7b8a0cdea8425a (diff) | |
download | anaconda-750f6e835ed306c059f7d301060b0566df64f273.tar.gz anaconda-750f6e835ed306c059f7d301060b0566df64f273.tar.xz anaconda-750f6e835ed306c059f7d301060b0566df64f273.zip |
if we're on a pty, don't try to load a keymap. it's just ugly
Diffstat (limited to 'isys')
-rw-r--r-- | isys/lang.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/isys/lang.c b/isys/lang.c index 177e02126..557c9372b 100644 --- a/isys/lang.c +++ b/isys/lang.c @@ -89,6 +89,11 @@ int loadKeymap(gzFile stream) { if (isVioConsole()) return 0; + /* assume that if we're already on a pty loading a keymap is silly */ + fstat(0, &sb); + if (major(sb.st_rdev) == 3 || major(sb.st_rdev) == 136) + return 0; + if (gunzip_read(stream, &magic, sizeof(magic)) != sizeof(magic)) return -EIO; |