]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/startup.c
Fix -USLAPD_RLOOKUPS
[openldap] / servers / slapd / back-ldbm / startup.c
index 6680ecc9bce2eefc2e3063f9dfb63f21936974cc..c9e8703d1f2f9162920c38354322791eb7d49264 100644 (file)
@@ -51,11 +51,11 @@ ldbm_back_startup(
 
        /*  if the data directory is not an absolute path, have it relative
         to the current working directory (which should not be configured !)  */
-       if ( *li->li_directory != *DIRSEP ) {
+       if ( *li->li_directory != *LDAP_DIRSEP ) {
                char   cwd[MAXPATHLEN];
 
                (void) getcwd( cwd, MAXPATHLEN );
-               sprintf( cwd, "%s%s%s", cwd, DIRSEP, li->li_directory );
+               sprintf( cwd, "%s" LDAP_DIRSEP "%s", cwd, li->li_directory );
                free( li->li_directory );
                li->li_directory = strdup( cwd );