change DIRSEP to LDAP_DIRSEP

This commit is contained in:
Gary Williams 1999-06-18 21:21:32 +00:00
parent 426379d5e1
commit e2a1216bda

View 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%s%s", cwd, LDAP_DIRSEP, li->li_directory );
free( li->li_directory );
li->li_directory = strdup( cwd );