1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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@18417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2008-08-07 11:57:04 +00:00
parent a5a60f53b3
commit 57a2bb783a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Aug 7 20:55:49 2008 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
is not supplied. backported from trunk. fixed [ruby-core:18058].
Thu Aug 7 16:28:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do not

View file

@ -378,9 +378,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