diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-16 16:38:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 16:38:45 -0700 |
commit | 8779797e6dc67f34eb9fb7bf8908e77d86a70e74 (patch) | |
tree | badd83d046815aeae0f91ef72f92e4fae01d3810 /lib/chef/resource | |
parent | 6cfcd38f11217cf8e4a39ec1b530840242828522 (diff) | |
download | chef-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')
-rw-r--r-- | lib/chef/resource/file.rb | 2 |
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 |