# File lib/chef/client.rb, line 316
    def enforce_path_sanity(env=ENV)
      if Chef::Config[:enforce_path_sanity] && RUBY_PLATFORM !~ /mswin|mingw32|windows/
        existing_paths = env["PATH"].split(':')
        SANE_PATHS.each do |sane_path|
          unless existing_paths.include?(sane_path)
            env_path = env["PATH"].dup
            env_path << ':' unless env["PATH"].empty?
            env_path << sane_path
            env["PATH"] = env_path
          end
        end
      end
    end