From: micah Date: Sat, 24 Nov 2007 23:03:21 +0000 (+0000) Subject: fixed ldap handler not recognizing database suffix X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=inline;h=f5135253a376e2629eb43bacc0f52a53e5050c67;hp=9def982904afab2afd2514b466893cebb0467569;p=matthijs%2Fupstream%2Fbackupninja-vserver.git fixed ldap handler not recognizing database suffix git-svn-id: http://code.autistici.org/svn/backupninja/trunk@506 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ChangeLog b/ChangeLog index 9a2cb00..ccb6545 100644 --- 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 diff --git a/handlers/ldap.in b/handlers/ldap.in index 4d9a335..f6f87c7 100644 --- a/handlers/ldap.in +++ b/handlers/ldap.in @@ -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