[ruby-cvs:68820] normal:r61639 (trunk): net/ftp: fix FrozenError in BufferedSocket

normal at ruby-lang.org normal at ruby-lang.org
Sat Jan 6 18:21:35 JST 2018


normal	2018-01-06 18:21:35 +0900 (Sat, 06 Jan 2018)

  New Revision: 61639

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61639

  Log:
    net/ftp: fix FrozenError in BufferedSocket
    
    I noticed this bug while working on something else with
    RUBYOPT=-d on, existing test cases all passed with it.
    
    Note: I use String.new because it is the local style, here,
    I prefer +'' (or ''.b, for a future commit)
    
    * lib/net/ftp.rb (BufferedSocket#read): use String.new
    * test/net/ftp/test_buffered_socket.rb (test_read_nil): new test
      [ruby-core:84675] [Bug #14323]

  Modified files:
    trunk/lib/net/ftp.rb
    trunk/test/net/ftp/test_buffered_socket.rb


More information about the ruby-cvs mailing list