diff options
Diffstat (limited to 'lib/chef/file_content_management/tempfile.rb')
-rw-r--r-- | lib/chef/file_content_management/tempfile.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/file_content_management/tempfile.rb b/lib/chef/file_content_management/tempfile.rb index 763648de33..27efe34191 100644 --- a/lib/chef/file_content_management/tempfile.rb +++ b/lib/chef/file_content_management/tempfile.rb @@ -76,7 +76,7 @@ class Chef # complexity here is due to supporting mangling non-UTF8 strings (e.g. latin-1 filenames with characters that are illegal in UTF-8) b = File.basename(@new_resource.path) i = b.index(".") - i.nil? ? "" : b[i..-1].scrub + i.nil? ? "" : b[i..].scrub end # Returns the possible directories for the tempfile to be created in. |