aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hotplug
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-06-26 18:06:24 +0200
committerJan Beulich <jbeulich@suse.com>2013-06-26 18:06:24 +0200
commitd0f535e9af564642250badf1fa300725ef996616 (patch)
tree9bb3f7adbda45183153888765ce08cbfffb964f1 /tools/hotplug
parent9b167bd2f394f821ae3252d74a15704a4bf91f6d (diff)
downloadxen-d0f535e9af564642250badf1fa300725ef996616.tar.gz
xen-d0f535e9af564642250badf1fa300725ef996616.tar.bz2
xen-d0f535e9af564642250badf1fa300725ef996616.zip
also override library path for hotplug scripts
Overriding PATH but not LD_LIBRARY_PATH is bogus, as it may result in the use of mismatched binaries and libraries. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'tools/hotplug')
-rw-r--r--tools/hotplug/Linux/xen-hotplug-common.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/hotplug/Linux/xen-hotplug-common.sh b/tools/hotplug/Linux/xen-hotplug-common.sh
index 4a7bc7349f..7af468836e 100644
--- a/tools/hotplug/Linux/xen-hotplug-common.sh
+++ b/tools/hotplug/Linux/xen-hotplug-common.sh
@@ -31,6 +31,7 @@ dir=$(dirname "$0")
exec 2>>/var/log/xen/xen-hotplug.log
export PATH="${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
+export LD_LIBRARY_PATH="${LIBDIR}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
export LANG="POSIX"
unset $(set | grep ^LC_ | cut -d= -f1)