Don't preserve modified time when untarring files [GH-1539]

This commit is contained in:
Mitchell Hashimoto 2013-04-04 13:32:37 -07:00
parent fd0661c20e
commit cf9eb509a9
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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