This project is closed and read-only.
Bug #385 ยป ftp.rb.diff
| 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
|
||