1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin.

[ruby-dev:29945], [ruby-dev:34095]

* lib/win32/registry.rb (Win32::Registry.expand_environ): try upcased
  name too for cygwin.  [ruby-dev:29945]

* lib/win32/resolv.rb (Win32::Resolv.get_hosts_path): use expand_path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-03-21 12:27:00 +00:00
parent bb786c14bd
commit b92fe24542
4 changed files with 13 additions and 3 deletions

View file

@ -11,7 +11,7 @@ module Win32
def self.get_hosts_path
path = get_hosts_dir
path = File.join(path.gsub(/\\/, File::SEPARATOR), 'hosts')
path = File.expand_path('hosts', path)
File.exist?(path) ? path : nil
end