From 9f612402e93bfab99f9ebc20cd924a9439420110 Mon Sep 17 00:00:00 2001 From: Bernhard Morgenstern Date: Sun, 2 Mar 2014 02:31:29 +0100 Subject: [PATCH] Read box file in binary mode for checksum --- lib/vagrant/util/file_checksum.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/util/file_checksum.rb b/lib/vagrant/util/file_checksum.rb index d25b36b1d..6a488d43b 100644 --- a/lib/vagrant/util/file_checksum.rb +++ b/lib/vagrant/util/file_checksum.rb @@ -26,7 +26,7 @@ class FileChecksum def checksum digest = @digest_klass.new - File.open(@path, "r") do |f| + File.open(@path, "rb") do |f| while !f.eof begin buf = f.readpartial(BUFFER_SIZE)