mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
change DIRSEP to LDAP_DIRSEP
This commit is contained in:
parent
426379d5e1
commit
e2a1216bda
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user