From b9f6afd2a01d02494b2a30b70525b3d849555b77 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 16 Dec 2012 10:37:43 -0800 Subject: [PATCH] Scrub LD_LIBRARY_PATH prior to executing VBoxManage --- plugins/providers/virtualbox/driver/base.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/providers/virtualbox/driver/base.rb b/plugins/providers/virtualbox/driver/base.rb index 165c0e15a..5dfb23aa5 100644 --- a/plugins/providers/virtualbox/driver/base.rb +++ b/plugins/providers/virtualbox/driver/base.rb @@ -327,6 +327,7 @@ module VagrantPlugins # by just reading stdout and don't expect the OS to just inject # garbage into it. old_dyld_lib_path = ENV.delete("DYLD_LIBRARY_PATH") + old_ld_lib_path = ENV.delete("LD_LIBRARY_PATH") Vagrant::Util::Busy.busy(int_callback) do Vagrant::Util::Subprocess.execute(@vboxmanage_path, *command, &block) @@ -335,6 +336,7 @@ module VagrantPlugins # Reset the library path if it was set before. See above comments # for more information on why this was unset in the first place. ENV["DYLD_LIBRARY_PATH"] = old_dyld_lib_path if old_dyld_lib_path + ENV["LD_LIBRARY_PATH"] = old_ld_lib_path if old_ld_lib_path end end end