[ruby-cvs:73026] naruse:r65926 (trunk): Use File.expand_path("~username") instead of ENV["HOME"]

naruse at ruby-lang.org naruse at ruby-lang.org
Thu Nov 22 19:43:42 JST 2018


naruse	2018-11-22 19:43:42 +0900 (Thu, 22 Nov 2018)

  New Revision: 65926

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

  Log:
    Use File.expand_path("~username") instead of ENV["HOME"]
    
    File.expand_path("~username") uses getpwnam() independently from
    Dir.home. [Bug #15324]
    
    From: Chris Seaton <chris at chrisseaton.com>

  Modified files:
    trunk/test/ruby/test_dir.rb


More information about the ruby-cvs mailing list