aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-07-01 12:01:53 +0200
committerJan Beulich <jbeulich@suse.com>2013-07-01 12:01:53 +0200
commit650ec8e1241dc0953285731c8b65f41db7d63027 (patch)
treeb1d88bde9dd5b546fce83779ae4df0d265fb605c
parentda1aa339c82f30ff9dba9d72bc61f52a443c18f5 (diff)
downloadxen-650ec8e1241dc0953285731c8b65f41db7d63027.tar.gz
xen-650ec8e1241dc0953285731c8b65f41db7d63027.tar.bz2
xen-650ec8e1241dc0953285731c8b65f41db7d63027.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> master commit: d0f535e9af564642250badf1fa300725ef996616 master date: 2013-06-26 18:06:24 +0200
-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)