ActionsLike0
Bug #2291
closedNet::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
Description
=begin
% cat ftp_binary.rb
require 'net/ftp'
f = Net::FTP.new
f.binary = true
% ruby ftp_binary.rb
/Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:224:in putline': undefined method
write' for nil:NilClass (NoMethodError)
from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:291:in block in voidcmd' from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/monitor.rb:190:in
mon_synchronize'
from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:290:in voidcmd' from /Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:146:in
binary='
from ftp_binary.rb:3:in `'
=end
Updated by naruse (Yui NARUSE) over 15 years ago
- Status changed from Open to Assigned
- Assignee set to shugo (Shugo Maeda)
Updated by naruse (Yui NARUSE) over 15 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
ActionsLike0