Added --no-same-owner & --no-same-permissions flags to bsdtar in box_collection.rb

This commit is contained in:
steve-simpson 2019-03-01 18:02:37 +00:00
parent b4d87e6ce9
commit 7b3ca04a6e
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ module Vagrant
# Extract the box into a temporary directory. # Extract the box into a temporary directory.
@logger.debug("Unpacking box into temporary directory: #{temp_dir}") @logger.debug("Unpacking box into temporary directory: #{temp_dir}")
result = Util::Subprocess.execute( result = Util::Subprocess.execute(
"bsdtar", "-v", "-x", "-m", "-s", "|\\\\\|/|", "-C", temp_dir.to_s, "-f", path.to_s) "bsdtar", "--no-same-owner", "--no-same-permissions", "-v", "-x", "-m", "-s", "|\\\\\|/|", "-C", temp_dir.to_s, "-f", path.to_s)
if result.exit_code != 0 if result.exit_code != 0
raise Errors::BoxUnpackageFailure, raise Errors::BoxUnpackageFailure,
output: result.stderr.to_s output: result.stderr.to_s