1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-14 17:00:07 +00:00

Be more verbose if the accesslist can not be found

This commit is contained in:
erdgeist 2009-07-14 13:14:45 +00:00
parent 3afbbc37d0
commit d729c88d88

View File

@ -59,7 +59,9 @@ static void accesslist_readfile( int sig ) {
accesslist_filehandle = fopen( g_accesslist_filename, "r" ); accesslist_filehandle = fopen( g_accesslist_filename, "r" );
if( accesslist_filehandle == NULL ) { if( accesslist_filehandle == NULL ) {
fprintf( stderr, "Warning: Can't open accesslist file: %s (but will try to create it later, if necessary and possible).", g_accesslist_filename ); char *wd = getcwd( NULL, 0 );
fprintf( stderr, "Warning: Can't open accesslist file: %s (but will try to create it later, if necessary and possible).\nPWD: %s\n", g_accesslist_filename, wd );
free( wd );
return; return;
} }
@ -154,4 +156,4 @@ int accesslist_isblessed( ot_ip6 ip, ot_permissions permissions ) {
return 0; return 0;
} }
const char *g_version_accesslist_c = "$Source$: $Revision$\n"; const char *g_version_accesslist_c = "$Source$: $Revision$\n";