# File lib/facter/util/resolution.rb, line 19 19: def self.search_paths 20: if Facter::Util::Config.is_windows? 21: ENV['PATH'].split(File::PATH_SEPARATOR) 22: else 23: # Make sure facter is usable even for non-root users. Most commands 24: # in /sbin (like ifconfig) can be run as non priviledged users as 25: # long as they do not modify anything - which we do not do with facter 26: ENV['PATH'].split(File::PATH_SEPARATOR) + [ '/sbin', '/usr/sbin' ] 27: end 28: end