summaryrefslogtreecommitdiff
path: root/lib/chef/resource/file.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-09-16 16:38:45 -0700
committerGitHub <noreply@github.com>2016-09-16 16:38:45 -0700
commit8779797e6dc67f34eb9fb7bf8908e77d86a70e74 (patch)
treebadd83d046815aeae0f91ef72f92e4fae01d3810 /lib/chef/resource/file.rb
parent6cfcd38f11217cf8e4a39ec1b530840242828522 (diff)
downloadchef-8779797e6dc67f34eb9fb7bf8908e77d86a70e74.tar.gz
add a test for non-utf8 chars in filenames in the file provider (#5335)
fix non-utf8 filename issues in the file provider (again)
Diffstat (limited to 'lib/chef/resource/file.rb')
-rw-r--r--lib/chef/resource/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb
index 7088e7613e..207de63778 100644
--- a/lib/chef/resource/file.rb
+++ b/lib/chef/resource/file.rb
@@ -81,7 +81,7 @@ class Chef
end
def special_docker_files?(file)
- %w{/etc/hosts /etc/hostname /etc/resolv.conf}.include?(Pathname(file).cleanpath.to_path)
+ %w{/etc/hosts /etc/hostname /etc/resolv.conf}.include?(Pathname(file.scrub).cleanpath.to_path)
end
end
end