From d0f535e9af564642250badf1fa300725ef996616 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 26 Jun 2013 18:06:24 +0200 Subject: 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 Acked-by: Ian Campbell Acked-by: George Dunlap --- tools/hotplug/Linux/xen-hotplug-common.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/hotplug') 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) -- cgit v1.2.3