Changeset 4aa0f6b for unix.c


Ignore:
Timestamp:
2010-06-07T14:31:07Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
56699f0
Parents:
0d9d53e (diff), 1fdb0a4 (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:

Merging killerbee stuff, bringing all the bleeding-edge stuff together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    r0d9d53e r4aa0f6b  
    5656       
    5757        log_init();
     58       
    5859        global.conf_file = g_strdup( CONF_FILE_DEF );
    5960        global.conf = conf_load( argc, argv );
     
    6263       
    6364        b_main_init();
    64         nogaim_init();
    6565       
    6666        srand( time( NULL ) ^ getpid() );
     67       
    6768        global.helpfile = g_strdup( HELP_FILE );
     69        if( help_init( &global.help, global.helpfile ) == NULL )
     70                log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
     71
     72        global.storage = storage_init( global.conf->primary_storage, global.conf->migrate_storage );
     73        if( global.storage == NULL )
     74        {
     75                log_message( LOGLVL_ERROR, "Unable to load storage backend '%s'", global.conf->primary_storage );
     76                return( 1 );
     77        }
    6878       
    6979        if( global.conf->runmode == RUNMODE_INETD )
     
    116126                        setuid( pw->pw_uid );
    117127                }
    118         }
    119 
    120         global.storage = storage_init( global.conf->primary_storage, global.conf->migrate_storage );
    121         if( global.storage == NULL )
    122         {
    123                 log_message( LOGLVL_ERROR, "Unable to load storage backend '%s'", global.conf->primary_storage );
    124                 return( 1 );
    125128        }
    126129       
     
    142145        if( !getuid() || !geteuid() )
    143146                log_message( LOGLVL_WARNING, "BitlBee is running with root privileges. Why?" );
    144         if( help_init( &global.help, global.helpfile ) == NULL )
    145                 log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
    146147       
    147148        b_main_run();
Note: See TracChangeset for help on using the changeset viewer.