Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rb73ac9c r21d09ac  
    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 
    59 
     58       
    6059        if( global.conf->runmode == RUNMODE_INETD )
    6160        {
     
    7170        if( i != 0 )
    7271                return( i );
    73 
    74         global.storage = storage_init( global.conf->primary_storage,
    75                                                                    global.conf->migrate_storage );
    76         if ( global.storage == NULL) {
    77                 log_message( LOGLVL_ERROR, "Unable to load storage backend '%s'", global.conf->primary_storage );
    78                 return( 1 );
    79         }
    80        
    8172       
    8273        /* Catch some signals to tell the user what's happening before quitting */
     
    9687        if( !getuid() || !geteuid() )
    9788                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 );
    9893        if( help_init( &(global.help) ) == NULL )
    9994                log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
Note: See TracChangeset for help on using the changeset viewer.