[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4205) little bug in shtool (mkln)



Full_Name: 
Version: 2.3.11
OS: windows
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.138.18.132)


hello,

i'm trying to build openldap for windows under mingw/minsys
here your buildprocess uses the shtool for creating symbolic links for the
slap-tools

if the destination dir is outside the openldap-build dir, it, can't create this
links 'cause it could not reache the slapd file (the link source)

i think the problem is a little bug in shtool
my bugfix would be the following:

diff --minimal --unified=5 --new-file --recursive
openldap-2.3.11/build/shtool.orig openldap-2.3.11/build/shtool
--- openldap-2.3.11/build/shtool.orig	Sun Jul 10 06:36:39 2005
+++ openldap-2.3.11/build/shtool	Wed Nov 23 18:04:33 2005
@@ -1201,11 +1201,11 @@
         #   determine source prefix which is the reverse directory
         #   step-up corresponding to the destination directory
         srcpre=""
 
         isroot=0
-        if [ ".$prefix" = . ] || [ ".$prefix" = ./ ]; then
+        if [ ".$prefix" != . ] || [ ".$prefix" != ./ ]; then
             isroot=1
         fi
         if [ $oneisabs = 0 ] || [ $isroot = 0 ]; then
             pl="$dstdir/"
             OIFS="$IFS"; IFS='/'


regards

martin