1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-12 13:17:58 +03:00

util: Preserve macOS dyld environment by default

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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Andrea Bolognani 2022-08-17 15:37:16 +02:00
parent f1929d4289
commit 9a1ef574ee

View File

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