This file is indexed.

/usr/lib/ruby/vendor_ruby/specinfra/command/windows/base/hot_fix.rb is in ruby-specinfra 2.35.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class Specinfra::Command::Windows::Base::HotFix < Specinfra::Command::Windows::Base
  class << self
    def check_is_installed(description, hot_fix_id=nil)
      hot_fix_id_match = /(KB\d+)/i.match(description)
      hot_fix_id = hot_fix_id_match ? hot_fix_id_match[1] : description if hot_fix_id.nil?

      args = [ 
        '-description', "'#{description}'",
        '-hotFixId', "'#{hot_fix_id}'"
      ]
 
      cmd = "(FindInstalledHotFix #{args.join(' ')})" 
      Backend::PowerShell::Command.new do
        using 'find_installed_hot_fix.ps1'
        exec "#{cmd} -eq $true"
      end
    end
  end
end