diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-12 19:39:50 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-12 19:39:50 +0000 |
commit | 95f1f18d06d972970ea8f051faa31999abf82600 (patch) | |
tree | 659535f4427f69459f03c38eb1b3486b6f46a062 /lib/net | |
parent | 869c7d91f7ec5a45322157b64161ebd50a910440 (diff) |
merge revision(s) 18417:
* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
is not supplied. backported from trunk. fixed [ruby-core:18058].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@21478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/ftp.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 737a7ebca1..40c79c885d 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -374,9 +374,11 @@ module Net synchronize do resp = sendcmd('USER ' + user) if resp[0] == ?3 + raise FTPReplyError, resp if passwd.nil? resp = sendcmd('PASS ' + passwd) end if resp[0] == ?3 + raise FTPReplyError, resp if acct.nil? resp = sendcmd('ACCT ' + acct) end end |