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 );
/* 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 );
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;
/* 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,
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 ));
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,