Skip to content
Snippets Groups Projects
Commit acd57577 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

s/DEFAULT_DIRSEP/DIRSEP/

parent 69562072
No related branches found
No related tags found
No related merge requests found
......@@ -45,11 +45,11 @@ bdb2i_back_startup_internal(
DB_INIT_LOCK | DB_INIT_MPOOL );
/* make sure, dbhome is an absolute path */
if ( *lty->lty_dbhome != *DEFAULT_DIRSEP ) {
if ( *lty->lty_dbhome != *DIRSEP ) {
char cwd[MAXPATHLEN];
(void) getcwd( cwd, MAXPATHLEN );
sprintf( cwd, "%s%s%s", cwd, DEFAULT_DIRSEP, lty->lty_dbhome );
sprintf( cwd, "%s%s%s", cwd, DIRSEP, lty->lty_dbhome );
free( lty->lty_dbhome );
lty->lty_dbhome = ch_strdup( cwd );
......@@ -159,11 +159,11 @@ bdb2i_back_db_startup_internal(
/* 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 != *DEFAULT_DIRSEP ) {
if ( *li->li_directory != *DIRSEP ) {
char cwd[MAXPATHLEN];
(void) getcwd( cwd, MAXPATHLEN );
sprintf( cwd, "%s%s%s", cwd, DEFAULT_DIRSEP, li->li_directory );
sprintf( cwd, "%s%s%s", cwd, DIRSEP, li->li_directory );
free( li->li_directory );
li->li_directory = ch_strdup( cwd );
......
......@@ -51,7 +51,7 @@ bdb2i_init_db_file_cache( struct ldbminfo *li, BDB2_TXN_FILES *fileinfo )
fileinfo->dbc_refcnt = 1;
sprintf( buf, "%s%s%s", li->li_directory, DEFAULT_DIRSEP,
sprintf( buf, "%s%s%s", li->li_directory, DIRSEP,
fileinfo->dbc_name );
if ( stat( buf, &st ) == 0 ) {
fileinfo->dbc_blksize = st.st_blksize;
......@@ -134,7 +134,7 @@ bdb2i_txn_attr_config(
/* re-use filename to get the complete path */
sprintf( fileName, "%s%s%s",
li->li_directory, DEFAULT_DIRSEP, p->dbc_name );
li->li_directory, DIRSEP, p->dbc_name );
/* since we have an mpool, we should not define a cache size */
p->dbc_db = bdb2i_db_open( fileName, DB_TYPE,
......@@ -181,7 +181,7 @@ bdb2i_open_nextid( BackendDB *be )
char fileName[MAXPATHLEN];
sprintf( fileName, "%s%s%s",
li->li_directory, DEFAULT_DIRSEP, NEXTID_NAME );
li->li_directory, DIRSEP, NEXTID_NAME );
/* try to open the file for read and write */
memset( &dbinfo, 0, sizeof( dbinfo ));
......@@ -225,7 +225,7 @@ bdb2i_txn_open_files( BackendDB *be )
char fileName[MAXPATHLEN];
sprintf( fileName, "%s%s%s",
li->li_directory, DEFAULT_DIRSEP, dbFile->dbc_name );
li->li_directory, DIRSEP, dbFile->dbc_name );
/* since we have an mpool, we should not define a cache size */
dbFile->dbc_db = bdb2i_db_open( fileName, DB_TYPE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment