fixed ldap handler not recognizing database suffix
authorMicah Anderson <micah@riseup.net>
Sat, 24 Nov 2007 23:03:21 +0000 (23:03 +0000)
committerMicah Anderson <micah@riseup.net>
Sat, 24 Nov 2007 23:03:21 +0000 (23:03 +0000)
ChangeLog
handlers/ldap.in

index 9a2cb00d0cec859a771aa94b61239847815b31a9..ccb6545980c2eecad929617707061dd5c0c30d59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@ version 0.9.5 -- unreleased
         . Added quoting because it was needed to prevent shell expansion, broking the
            toint function sometimes (Closes: Trac#11)
         . Fixed reportspace option (Closes: Trac#10)
+        . Fixed ldap handler not recognizing database suffix (Closes: Trac#28)
     handler changes
        dup:
         . Support duplicity >= 0.4.3 invocation syntax (--ssh-command option
index 4d9a3354e117a50759ce961847965908a59685c4..f6f87c77a46ce83eba218aa0d87c09cb29555e75 100644 (file)
@@ -42,7 +42,7 @@ if [ "$ldif" == "yes" ]; then
    fi  
    
    for db in $databases; do
-      if [ `expr index "$dbnum" "="` == "0" ]; then
+      if [ `expr index "$db" "="` == "0" ]; then
                        # db is a number, get the suffix.
          dbsuffix=${dbsuffixes[$db]/*:/}
       else