diff options
author | Claire McQuin <claire@getchef.com> | 2014-09-19 12:11:08 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-09-22 11:22:30 -0700 |
commit | cb468126575d3e3f2995d4042a517a3bc1d74f06 (patch) | |
tree | 3bb20bc54098b5bf66c491449a76065162cb77e0 /lib | |
parent | 981ef241fa1f2f48cfa60b3bac5d921fcfe78fbb (diff) | |
download | chef-cb468126575d3e3f2995d4042a517a3bc1d74f06.tar.gz |
Escape path for globbing.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/service/macosx.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/macosx.rb b/lib/chef/provider/service/macosx.rb index cf5e554559..3924f28c48 100644 --- a/lib/chef/provider/service/macosx.rb +++ b/lib/chef/provider/service/macosx.rb @@ -194,7 +194,7 @@ class Chef plists = PLIST_DIRS.inject([]) do |results, dir| edir = ::File.expand_path(dir) entries = Dir.glob( - "#{edir}/*#{@current_resource.service_name}*.plist" + "#{edir}/*#{Chef::Util::PathHelper.escape_glob(@current_resource.service_name)}*.plist" ) entries.any? ? results << entries : results end |