Browse Source

Resolves: 316281
Summary: Initialize backup directory name properly for all cases.

Nathan Kinder 18 years ago
parent
commit
2d82520246
1 changed files with 4 additions and 2 deletions
  1. 4 2
      ldap/servers/slapd/back-ldbm/archive.c

+ 4 - 2
ldap/servers/slapd/back-ldbm/archive.c

@@ -296,9 +296,11 @@ int ldbm_back_ldbm2archive( Slapi_PBlock *pb )
         }
     }
 
-    if (stat(rawdirectory, &sbuf) == 0) {
+    /* Initialize directory */
+    directory = rel2abspath(rawdirectory);
+
+    if (stat(directory, &sbuf) == 0) {
         int baklen = 0;
-        directory = rel2abspath(rawdirectory);
 
         if (slapd_comp_path(directory, li->li_directory) == 0) {
             LDAPDebug(LDAP_DEBUG_ANY,