Changes in unix.c [1ee6c18:21d09ac]
Legend:
- Unmodified
- Added
- Removed
-
unix.c
r1ee6c18 r21d09ac 52 52 53 53 global.helpfile = g_strdup( HELP_FILE ); 54 54 55 55 global.conf = conf_load( argc, argv ); 56 56 if( global.conf == NULL ) 57 57 return( 1 ); 58 59 58 60 59 if( global.conf->runmode == RUNMODE_INETD ) 61 60 { … … 71 70 if( i != 0 ) 72 71 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 80 72 81 73 /* Catch some signals to tell the user what's happening before quitting */ … … 95 87 if( !getuid() || !geteuid() ) 96 88 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 ); 97 93 if( help_init( &(global.help) ) == NULL ) 98 94 log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
Note: See TracChangeset
for help on using the changeset viewer.