зеркало из https://github.com/github/ruby.git
* 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:
Родитель
0ff8385bf4
Коммит
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>
|
||||
|
||||
* misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
|
||||
|
|
|
@ -396,9 +396,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
|
||||
|
|
Загрузка…
Ссылка в новой задаче