From cf9eb509a9dbead030bf285b47d7a2364c4cb809 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 4 Apr 2013 13:32:37 -0700 Subject: [PATCH] Don't preserve modified time when untarring files [GH-1539] --- CHANGELOG.md | 1 + lib/vagrant/box_collection.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fe83eecc..64cce4c0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ IMPROVEMENTS: BUG FIXES: - The `:mac` option for host-only networks is respected. [GH-1536] + - Don't preserve modified time when untarring boxes. [GH-1539] ## 1.1.6 (April 3, 2013) diff --git a/lib/vagrant/box_collection.rb b/lib/vagrant/box_collection.rb index 18ebe781c..4544d7b14 100644 --- a/lib/vagrant/box_collection.rb +++ b/lib/vagrant/box_collection.rb @@ -101,7 +101,7 @@ module Vagrant # Extract the box into a temporary directory. @logger.debug("Unpacking box into temporary directory: #{temp_dir}") result = Util::Subprocess.execute( - "bsdtar", "-v", "-x", "-C", temp_dir.to_s, "-f", path.to_s) + "bsdtar", "-v", "-x", "-m", "-C", temp_dir.to_s, "-f", path.to_s) raise Errors::BoxUnpackageFailure, :output => result.stderr.to_s if result.exit_code != 0 # If we get a V1 box, we want to update it in place