From 0db1f47ad057b1d1df78f32fab8dc6ea60002f38 Mon Sep 17 00:00:00 2001 From: YO4 Date: Thu, 17 Apr 2025 23:52:58 +0900 Subject: [PATCH] [ruby/resolv] quote registry value name properly 'NV Domain' needs to be quoted. https://github.com/ruby/resolv/commit/332a16dcc0 --- ext/win32/lib/win32/resolv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/win32/lib/win32/resolv.rb b/ext/win32/lib/win32/resolv.rb index aaa9891456..67762da375 100644 --- a/ext/win32/lib/win32/resolv.rb +++ b/ext/win32/lib/win32/resolv.rb @@ -134,7 +134,7 @@ module Win32 "" end else - cmd = "Get-ItemProperty -Path 'HKLM:\\#{path}' -Name '#{name}' -ErrorAction SilentlyContinue | Select-Object -ExpandProperty #{name}" + cmd = "Get-ItemProperty -Path 'HKLM:\\#{path}' -Name '#{name}' -ErrorAction SilentlyContinue | Select-Object -ExpandProperty '#{name}'" output, _ = Open3.capture2('powershell', '-Command', cmd) output.strip end