summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-09-19 12:16:32 -0700
committerClaire McQuin <claire@getchef.com>2014-09-22 11:22:30 -0700
commit15bba51d19666133198cd4a7d3b52c9ae8c24dfa (patch)
tree962286ff36844632cdfd45f4129460861356eb87 /lib
parentf2089d8cbc8db391a4d28f220e69f340d7c36bfc (diff)
downloadchef-15bba51d19666133198cd4a7d3b52c9ae8c24dfa.tar.gz
Escape path for globbing.
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/package/freebsd/pkg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/freebsd/pkg.rb b/lib/chef/provider/package/freebsd/pkg.rb
index c757d26fe5..01dc1e2eaa 100644
--- a/lib/chef/provider/package/freebsd/pkg.rb
+++ b/lib/chef/provider/package/freebsd/pkg.rb
@@ -87,7 +87,7 @@ class Chef
end
def file_candidate_version_path
- Dir["#{@new_resource.source}/#{@current_resource.package_name}*"][-1].to_s
+ Dir[Chef::Util::PathHelper.escape_glob("#{@new_resource.source}/#{@current_resource.package_name}") + "*"][-1].to_s
end
def file_candidate_version