Skip to content

Commit

Permalink
open zip file in binary mode to avoid injection of carriage returns o…
Browse files Browse the repository at this point in the history
…n windows hosts
  • Loading branch information
mwrock committed Mar 21, 2015
1 parent 9a9b363 commit eef4d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kitchen/transport/winrm/tmp_zip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def initialize(dir, logger = nil)
@dir = Pathname.new(dir)
@method = ::Zip::Entry::DEFLATED
@compression = Zlib::BEST_COMPRESSION
@zip_io = Tempfile.open(["tmpzip-", ".zip"])
@zip_io = Tempfile.open(["tmpzip-", ".zip"], :binmode => true)
write_zip
@zip_io.close
end
Expand Down

0 comments on commit eef4d4b

Please sign in to comment.