Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolv: not all systems have a hosts file #1791

Closed
wants to merge 1 commit into from
Closed

resolv: not all systems have a hosts file #1791

wants to merge 1 commit into from

Conversation

docwhat
Copy link

@docwhat docwhat commented Jan 17, 2018

Win32 may not have a hosts file, in which case it is nil.

https://bugs.ruby-lang.org/issues/14369

Win32 may not have a hosts file, in which case it is `nil`.

https://bugs.ruby-lang.org/issues/14369
@matzbot matzbot closed this in 046215e Jan 18, 2018
matzbot pushed a commit that referenced this pull request Jan 18, 2018
* lib/resolv.rb (Resolv::Hosts::DefaultFileName): fallback to NUL
  device when Win32::Resolv.get_hosts_path() returned nil, to get
  rid of TypeError in lazy_initialize.
  [ruby-core:84907] [Bug #14369]  [Fix GH-1791]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant