diff options
author | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-25 22:12:53 +0000 |
---|---|---|
committer | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-25 22:12:53 +0000 |
commit | d520759f6507177cc2b5b74e026ba884b99ddded (patch) | |
tree | 6ab3c3cb25f90f49788b9a2f22644df6a2a5fcd5 /lib/net/telnet.rb | |
parent | 7c31f2a12039966f92a1d85493dcc1413ef23080 (diff) | |
download | ruby-d520759f6507177cc2b5b74e026ba884b99ddded.tar.gz |
* lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in
addition to "password" for Telnet login prompts. [ruby-Bugs-10746]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/telnet.rb')
-rw-r--r-- | lib/net/telnet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb index 7157f2ac34..dfbe932dcd 100644 --- a/lib/net/telnet.rb +++ b/lib/net/telnet.rb @@ -708,7 +708,7 @@ module Net # data is also yielded to the block as it is received. def login(options, password = nil) # :yield: recvdata login_prompt = /[Ll]ogin[: ]*\z/n - password_prompt = /[Pp]assword[: ]*\z/n + password_prompt = /[Pp]ass(?:word|phrase)[: ]*\z/n if options.kind_of?(Hash) username = options["Name"] password = options["Password"] |