diff options
author | Scott Hain <shain@getchef.com> | 2014-06-17 11:43:32 -0700 |
---|---|---|
committer | Scott Hain <shain@getchef.com> | 2014-06-17 11:43:32 -0700 |
commit | be0e219e51b62aa50b10ad57c7233def9785183a (patch) | |
tree | d55460b6d5c06a02ccfd9f2363e025d90f6037d5 /lib/chef/util/selinux.rb | |
parent | 76828f507b3d0654af83c22ca7ad48b8e36ed333 (diff) | |
download | chef-be0e219e51b62aa50b10ad57c7233def9785183a.tar.gz |
Updated selinux path check to allow for directories that have a space in the name. Fixes CHEF-5095
Diffstat (limited to 'lib/chef/util/selinux.rb')
-rw-r--r-- | lib/chef/util/selinux.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/util/selinux.rb b/lib/chef/util/selinux.rb index 1da3e88913..92d5756552 100644 --- a/lib/chef/util/selinux.rb +++ b/lib/chef/util/selinux.rb @@ -47,7 +47,7 @@ class Chef def restore_security_context(file_path, recursive = false) if restorecon_path restorecon_command = recursive ? "#{restorecon_path} -R -r" : "#{restorecon_path} -R" - restorecon_command += " #{file_path}" + restorecon_command += " \"#{file_path}\"" Chef::Log.debug("Restoring selinux security content with #{restorecon_command}") shell_out!(restorecon_command) else |