summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-09-19 11:36:56 -0700
committerClaire McQuin <claire@getchef.com>2014-09-22 11:22:29 -0700
commit60ab3608d7eb3d8498e00deb282f8974e305ad48 (patch)
treeb88a6993b3a8f360a08b59869ad6022dc2f1e7ff
parent655fc195e18f4bf3802718003ced9bc5ee25f163 (diff)
downloadchef-60ab3608d7eb3d8498e00deb282f8974e305ad48.tar.gz
Escape path for globbing.
-rw-r--r--lib/chef/cookbook_loader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook_loader.rb b/lib/chef/cookbook_loader.rb
index d569cdd008..c05fedb141 100644
--- a/lib/chef/cookbook_loader.rb
+++ b/lib/chef/cookbook_loader.rb
@@ -161,7 +161,7 @@ class Chef
@all_files_in_repo_paths ||=
begin
@repo_paths.inject([]) do |all_children, repo_path|
- all_children += Dir[File.join(repo_path, "*")]
+ all_children += Dir[File.join(Chef::Util::PathHelper.escape_glob(repo_path), "*")]
end
end
end