[libvirt PATCH 1/2] util: Preserve macOS dyld environment by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The DYLD_* environment variables on macOS have the same purpose
as the LD_* variables have on Linux. Since we're preserving the
latter by default, it makes sense to do the same for the former
as well.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 src/util/vircommand.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/vircommand.c b/src/util/vircommand.c
index d78c666f28..4e003266bf 100644
--- a/src/util/vircommand.c
+++ b/src/util/vircommand.c
@@ -1417,6 +1417,8 @@ virCommandAddEnvPassCommon(virCommand *cmd)
 
     virCommandAddEnvPass(cmd, "LD_PRELOAD");
     virCommandAddEnvPass(cmd, "LD_LIBRARY_PATH");
+    virCommandAddEnvPass(cmd, "DYLD_INSERT_LIBRARIES");
+    virCommandAddEnvPass(cmd, "DYLD_FORCE_FLAT_NAMESPACE");
     virCommandAddEnvPass(cmd, "PATH");
     virCommandAddEnvPass(cmd, "HOME");
     virCommandAddEnvPass(cmd, "USER");
-- 
2.37.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux