summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-09-09 15:00:36 +0000
committerChris Lumens <clumens@redhat.com>2005-09-09 15:00:36 +0000
commit0c24416c1305ca979b13547da828715f427b0dc4 (patch)
treefe4b713c05a9a3a153cf08ab91e55d08be3f2951 /anaconda
parentd7f0ebcec4ca32fa9e1b7172720780168e20223c (diff)
downloadanaconda-0c24416c1305ca979b13547da828715f427b0dc4.tar.gz
anaconda-0c24416c1305ca979b13547da828715f427b0dc4.tar.xz
anaconda-0c24416c1305ca979b13547da828715f427b0dc4.zip
Make sure we have /dev/tty3 before trying to write to it.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda2
1 files changed, 1 insertions, 1 deletions
diff --git a/anaconda b/anaconda
index ae71cb7ec..01b4bf065 100755
--- a/anaconda
+++ b/anaconda
@@ -356,7 +356,7 @@ from flags import flags
log = logging.getLogger("anaconda")
stdoutLog = logging.getLogger("anaconda.stdout")
-if iutil.getArch() != "s390":
+if iutil.getArch() != "s390" and os.access("/dev/tty3", os.W_OK):
logger.addFileHandler ("/dev/tty3", log)
from rhpl.translate import _, textdomain, addPoPath