diff options
author | Tim Smith <tsmith@chef.io> | 2018-10-26 13:00:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 13:00:11 -0700 |
commit | 9a141ebee1a9a417581ef0ebf0b332c09b656359 (patch) | |
tree | 80b92d063935e2b8b7fcc2a7863eb9b1cc765c1c /lib | |
parent | 2dd9de9143afac54de475d730572897ab4730a06 (diff) | |
parent | 0990e98694644957a9d1ecad2b6b67586bc47692 (diff) | |
download | ohai-9a141ebee1a9a417581ef0ebf0b332c09b656359.tar.gz |
Merge pull request #1250 from chef/chdir
Remove the chdir to / when running ohai
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ohai/application.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ohai/application.rb b/lib/ohai/application.rb index c7d335b0..b1455cab 100644 --- a/lib/ohai/application.rb +++ b/lib/ohai/application.rb @@ -101,10 +101,6 @@ class Ohai::Application # # @return void def run_application - # Always switch to a readable directory. Keeps subsequent Dir.chdir() {} - # from failing due to permissions when launched as a less privileged user. - Dir.chdir("/") - config[:invoked_from_cli] = true config[:logger] = Ohai::Log.with_child ohai = Ohai::System.new(config) |