summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-09-11 14:14:25 +0000
committerChris Lumens <clumens@redhat.com>2007-09-11 14:14:25 +0000
commit3e6ed05da3b6f2d6af9e6e1474aab23ebd1c87dd (patch)
tree006d983aaea6d6dedb7c51b6899e6dfe7c30d00e /exception.py
parent15607547139713f5fa0b63429db975a68b116b49 (diff)
downloadanaconda-3e6ed05da3b6f2d6af9e6e1474aab23ebd1c87dd.tar.gz
anaconda-3e6ed05da3b6f2d6af9e6e1474aab23ebd1c87dd.tar.xz
anaconda-3e6ed05da3b6f2d6af9e6e1474aab23ebd1c87dd.zip
Not all ssh servers respond with the same password prompt, so be more liberal
in what we wait for (patch from alanm AT redhat DOT com, #286031).
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/exception.py b/exception.py
index ffe13d5a2..24905beac 100644
--- a/exception.py
+++ b/exception.py
@@ -190,7 +190,7 @@ def scpAuthenticate(master, childpid, password):
# can occur for anything that causes scp to immediately die (bad
# hostname, host down, etc.)
buf = os.read(master, 4096)
- if buf.find("'s password: ") != -1:
+ if buf.lower().find("password: ") != -1:
os.write(master, password+"\n")
# read the space and newline that get echoed back
os.read(master, 2)