summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbsh
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper/smbsh')
-rwxr-xr-xsource3/smbwrapper/smbsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbwrapper/smbsh b/source3/smbwrapper/smbsh
index 1abe568663..c03e4f2baf 100755
--- a/source3/smbwrapper/smbsh
+++ b/source3/smbwrapper/smbsh
@@ -1,5 +1,7 @@
#!/bin/sh
+LIBDIR=/samba/cvs/source/smbwrapper
+
# a simple launcher for the smbwrapper.so preloadde library
if [ x$SMBW_USER = x ]; then
@@ -15,7 +17,7 @@ if [ x$SMBW_PASSWORD = x ]; then
export SMBW_PASSWORD=$pass
fi
-export LD_PRELOAD=$PWD/smbwrapper/smbwrapper.so
+export LD_PRELOAD=$LIBDIR/smbwrapper.so
export PWD
export PS1='smbsh$ '