diff options
author | Claire McQuin <claire@getchef.com> | 2014-09-19 12:16:32 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-09-22 11:22:30 -0700 |
commit | 15bba51d19666133198cd4a7d3b52c9ae8c24dfa (patch) | |
tree | 962286ff36844632cdfd45f4129460861356eb87 /lib | |
parent | f2089d8cbc8db391a4d28f220e69f340d7c36bfc (diff) | |
download | chef-15bba51d19666133198cd4a7d3b52c9ae8c24dfa.tar.gz |
Escape path for globbing.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/package/freebsd/pkg.rb | 2 |
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 |