Browse Source

Be more verbose if the accesslist can not be found

dynamic-accesslists
erdgeist 16 years ago
parent
commit
d729c88d88
  1. 4
      ot_accesslist.c

4
ot_accesslist.c

@ -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;
} }

Loading…
Cancel
Save