]> git.sur5r.net Git - openldap/commitdiff
Re-fixing ITS#2667: test -a and test -o unportable, use && and ||.
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 18 May 2007 15:23:28 +0000 (15:23 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 18 May 2007 15:23:28 +0000 (15:23 +0000)
contrib/ldaptcl/configure.in
tests/run.in
tests/scripts/test045-syncreplication-proxied

index 71ac2a67b132ff3c3b188768fc5a66f006fec566..9a0364c3a7d574b8d24554e67a5daa518c68d975 100644 (file)
@@ -52,7 +52,8 @@ AC_ARG_WITH(tk, [  --with-tk=DIR          use Tk 8.0 binaries from DIR],
 
 case "$with_tk" in
     yes)
-       if test -f $exec_prefix/lib/tkConfig.sh -a $exec_prefix/lib/tkxConfig.sh
+       if test -f $exec_prefix/lib/tkConfig.sh &&
+          test -f $exec_prefix/lib/tkxConfig.sh
        then
            :
        else
index f5c11b14ec65595587777dc50de733c5830c2bd0..24133fbcb5d33e0156059cd874b8f927dfb082eb 100644 (file)
@@ -55,10 +55,10 @@ AC_THREADS=threads@BUILD_THREAD@
 AC_LIBS_DYNAMIC=lib@BUILD_LIBS_DYNAMIC@
 
 # sanitize
-if test "${AC_ldap}" = "ldapmod" -a "${AC_LIBS_DYNAMIC}" = "static" ; then
+if test "${AC_ldap}" = "ldapmod" && test "${AC_LIBS_DYNAMIC}" = "static" ; then
        AC_ldap="ldapno"
 fi
-if test "${AC_meta}" = "metamod" -a "${AC_LIBS_DYNAMIC}" = "static" ; then
+if test "${AC_meta}" = "metamod" && test "${AC_LIBS_DYNAMIC}" = "static" ; then
        AC_meta="metano"
 fi
 
index 40e7e4bc80af29fcc3e8893f39913fdb8abab507..87727fe2ba46400a66b4be4d307a074abc0e891f 100755 (executable)
@@ -141,7 +141,7 @@ for i in 0 1 2 3 4 5; do
        $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT3 \
                '(objectClass=*)' > /dev/null 2>&1
        RC=$?
-       if test $RC = 0 -o $RC = 53 ; then
+       if test $RC = 0 || test $RC = 53 ; then
                break
        fi
        echo "Waiting 5 seconds for slapd to start..."