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)
378 378
      synchronize do
379 379
	resp = sendcmd('USER ' + user)
380 380
	if resp[0] == ?3
381
          raise FTPReplyError, resp if passwd.nil?
381 382
	  resp = sendcmd('PASS ' + passwd)
382 383
	end
383 384
	if resp[0] == ?3
385
          raise FTPReplyError, resp if acct.nil?
384 386
	  resp = sendcmd('ACCT ' + acct)
385 387
	end
386 388
      end