Skip to content

Commit

Permalink
Merge pull request #644 from mwrock/windows-guest-support
Browse files Browse the repository at this point in the history
open zip file in binary mode to avoid corrupting zip files on  windows
  • Loading branch information
tyler-ball committed Mar 23, 2015
2 parents 38481b4 + eef4d4b commit fdc66ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kitchen/transport/winrm/tmp_zip.rb
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 fdc66ca

Please sign in to comment.