summaryrefslogtreecommitdiff
path: root/lib/chef/provider/file.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-05-23 15:57:41 -0700
committersersut <serdar@opscode.com>2013-05-23 15:57:41 -0700
commit62e530b00e6593b28b3f08b6dead75b961b92bcb (patch)
tree44d2f716f27eefd81da3e4c8f2e2fec1d6dbea70 /lib/chef/provider/file.rb
parent5ac5a858ade3b92bf41994dddb8cd84b52f7245a (diff)
downloadchef-62e530b00e6593b28b3f08b6dead75b961b92bcb.tar.gz
Unit specs for selinux code.
Diffstat (limited to 'lib/chef/provider/file.rb')
-rw-r--r--lib/chef/provider/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/file.rb b/lib/chef/provider/file.rb
index 71ed2bb088..9e6e1dc3e0 100644
--- a/lib/chef/provider/file.rb
+++ b/lib/chef/provider/file.rb
@@ -273,7 +273,7 @@ class Chef
if resource_updated? && Chef::Config[:enable_selinux_file_permission_fixup]
if selinux_enabled?
converge_by("restore selinux security context") do
- restore_security_context(@new_resource_path, recursive)
+ restore_security_context(@new_resource.path, recursive)
end
else
Chef::Log.debug "selinux utilities can not be found. Skipping selinux permission fixup."