summaryrefslogtreecommitdiff
path: root/lib/chef/provider/file.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-05-22 16:38:23 -0700
committersersut <serdar@opscode.com>2013-05-22 16:50:30 -0700
commit25cae781a6fce3cf1cabf4b743dae872f716f6c8 (patch)
tree65b5f255a599e4ca7c28b4e20b91f2398b1ddb1e /lib/chef/provider/file.rb
parent46cb860a573c44c75f9cca271ef229b7d46f04dd (diff)
downloadchef-25cae781a6fce3cf1cabf4b743dae872f716f6c8.tar.gz
force_unlock tests for blockdev & chardev
force_unlink specs for blockdev, chardev, pipe.
Diffstat (limited to 'lib/chef/provider/file.rb')
-rw-r--r--lib/chef/provider/file.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/file.rb b/lib/chef/provider/file.rb
index 35a1c35eba..aa34525f36 100644
--- a/lib/chef/provider/file.rb
+++ b/lib/chef/provider/file.rb
@@ -180,7 +180,8 @@ class Chef
def real_file?(path)
# TODO: For now only testing the logic with symlinks
- !::File.symlink?(path) && !::File.directory?(path)
+ # !::File.symlink?(path) && !::File.directory?(path)
+ !::File.symlink?(path) && ::File.file?(path)
end
def unlink(path)