diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-16 21:16:45 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-24 21:24:15 -0800 |
commit | b5b94dc98bca9e0158b6ddab29e14ca4edf5ac02 (patch) | |
tree | b63f367a9095c110e1ac0099963e1a421f2cc984 /lib/chef/application | |
parent | 05f5c6727a9dc9f32ef78bafb059f2dd26194724 (diff) | |
download | chef-b5b94dc98bca9e0158b6ddab29e14ca4edf5ac02.tar.gz |
Use escape_glob_dir for client.d/conf.d
Passing the value of `escape_glob` to Dir.glob does
not always work correctly on Windows. Always use
forward slashes when globbing, even on Windows. We
now do this via `escape_glob_dir`, which calls
Pathname.cleanpath, which does the foward slash thing.
Diffstat (limited to 'lib/chef/application')
-rw-r--r-- | lib/chef/application/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index 7de6bb05c2..9d67754325 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -526,7 +526,7 @@ class Chef::Application::Client < Chef::Application def list_config_d_files if Chef::Config[:client_d_dir] - Dir.glob(File.join(Chef::Util::PathHelper.escape_glob( + Dir.glob(File.join(Chef::Util::PathHelper.escape_glob_dir( Chef::Config[:client_d_dir]), "*.rb")) else [] |