diff options
author | Matthieu Patou <mat@matws.net> | 2010-10-19 17:23:57 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2010-11-12 19:40:21 +0000 |
commit | f4e9f125e0e4a9ab236595b79315ad26b7ca9d8b (patch) | |
tree | 4725556e7d2a777e345b0f483367652ba10ca903 /source4/scripting/bin | |
parent | e0f64b77ebb5ecbd1bdabe9f2b3cf368421b34e6 (diff) | |
download | samba-f4e9f125e0e4a9ab236595b79315ad26b7ca9d8b.tar.gz samba-f4e9f125e0e4a9ab236595b79315ad26b7ca9d8b.tar.bz2 samba-f4e9f125e0e4a9ab236595b79315ad26b7ca9d8b.zip |
ktpass: fix the search path for when running in samba's source dir
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-x | source4/scripting/bin/ktpass.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/scripting/bin/ktpass.sh b/source4/scripting/bin/ktpass.sh index 92b1976932..7c13fe4ac0 100755 --- a/source4/scripting/bin/ktpass.sh +++ b/source4/scripting/bin/ktpass.sh @@ -55,6 +55,9 @@ if [ -z "$enc" ]; then fi if [ -z "$path" ]; then path=`dirname $0`/../bin/ + if [ ! -f ${path}ldbsearch ]; then + path=`dirname $0`/../../bin/ + fi fi if [ -z "$outfile" -o -z "$princ" -o -z "$pass" ]; then echo "At least one mandatory parameter (--out, --princ, --pass) was not specified" |