Changeset 9df916f for unix.c


Ignore:
Timestamp:
2005-12-09T20:48:45Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
34759e6
Parents:
c2295f7 (diff), 87c24ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge my storage abstraction changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rc2295f7 r9df916f  
    5252       
    5353        global.helpfile = g_strdup( HELP_FILE );
    54        
     54
    5555        global.conf = conf_load( argc, argv );
    5656        if( global.conf == NULL )
    5757                return( 1 );
    58        
     58
     59
    5960        if( global.conf->runmode == RUNMODE_INETD )
    6061        {
     
    7071        if( i != 0 )
    7172                return( i );
     73
     74        global.storage = storage_init( global.conf->storage );
     75        if ( global.storage == NULL) {
     76                log_message( LOGLVL_ERROR, "No such storage backend '%s'", global.conf->storage );
     77                return( 1 );
     78        }
     79       
    7280       
    7381        /* Catch some signals to tell the user what's happening before quitting */
     
    8795        if( !getuid() || !geteuid() )
    8896                log_message( LOGLVL_WARNING, "BitlBee is running with root privileges. Why?" );
    89         if( access( global.conf->configdir, F_OK ) != 0 )
    90                 log_message( LOGLVL_WARNING, "The configuration directory %s does not exist. Configuration won't be saved.", CONFIG );
    91         else if( access( global.conf->configdir, R_OK ) != 0 || access( global.conf->configdir, W_OK ) != 0 )
    92                 log_message( LOGLVL_WARNING, "Permission problem: Can't read/write from/to %s.", global.conf->configdir );
    9397        if( help_init( &(global.help) ) == NULL )
    9498                log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
Note: See TracChangeset for help on using the changeset viewer.