From 7b3ca04a6e29e4b59b7e2d8428f0c5c4bb785919 Mon Sep 17 00:00:00 2001 From: steve-simpson Date: Fri, 1 Mar 2019 18:02:37 +0000 Subject: [PATCH] Added --no-same-owner & --no-same-permissions flags to bsdtar in box_collection.rb --- lib/vagrant/box_collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/box_collection.rb b/lib/vagrant/box_collection.rb index 8236eaf09..91423c39b 100644 --- a/lib/vagrant/box_collection.rb +++ b/lib/vagrant/box_collection.rb @@ -116,7 +116,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", "-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 raise Errors::BoxUnpackageFailure, output: result.stderr.to_s