Project

General

Profile

Bug #385 ยป ftp.rb.diff

shugo (Shugo Maeda), 08/05/2008 04:54 PM

View differences:

lib/net/ftp.rb (working copy)
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
    (1-1/1)