summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/utils
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2012-05-18 09:15:47 +0200
committerAnand Avati <avati@redhat.com>2012-05-18 19:16:34 -0700
commitb71d314482d572f7e54a306bb566f0f8883b2ce8 (patch)
tree3724013884e252a021d12e4067cc70a010b30a6b /xlators/mount/fuse/utils
parentb0a243a6351db8acd943ba6cfb3935fa063a4fee (diff)
Library search order fix
Set LD_LIBRARY_PATH before starting glusterfs. This avoids loading xlator from another glusterfs version if there are diffeent builds installed on the system (e.g.: in /usr, /usr/local, /opt, /usr/pkg...) BUG: 764655 Change-Id: I13bf0bea043351498b4bc885c5ac45b108229a0a Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.com/3361 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/utils')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index cc21ba5..39f81ce 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -51,6 +51,8 @@ _init ()
esac
UPDATEDBCONF=/etc/updatedb.conf
+ LD_LIBRARY_PATH=@libdir@:${LD_LIBRARY_PATH}
+ export LD_LIBRARY_PATH
}
# Mount happens asynchronously, so the command status alone will never be