* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
is not supplied. fixed [ruby-core:18058]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ff8385bf4
commit
16a24188cd
@ -1,3 +1,8 @@
|
|||||||
|
Thu Aug 7 20:52:08 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
|
||||||
|
is not supplied. fixed [ruby-core:18058].
|
||||||
|
|
||||||
Thu Aug 7 18:01:44 2008 Akinori MUSHA <knu@iDaemons.org>
|
Thu Aug 7 18:01:44 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
|
* misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
|
||||||
|
@ -396,9 +396,11 @@ module Net
|
|||||||
synchronize do
|
synchronize do
|
||||||
resp = sendcmd('USER ' + user)
|
resp = sendcmd('USER ' + user)
|
||||||
if resp[0] == ?3
|
if resp[0] == ?3
|
||||||
|
raise FTPReplyError, resp if passwd.nil?
|
||||||
resp = sendcmd('PASS ' + passwd)
|
resp = sendcmd('PASS ' + passwd)
|
||||||
end
|
end
|
||||||
if resp[0] == ?3
|
if resp[0] == ?3
|
||||||
|
raise FTPReplyError, resp if acct.nil?
|
||||||
resp = sendcmd('ACCT ' + acct)
|
resp = sendcmd('ACCT ' + acct)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user