From d729c88d8843de6d78639b1fbfb85512e3049f27 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 14 Jul 2009 13:14:45 +0000 Subject: Be more verbose if the accesslist can not be found --- ot_accesslist.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ot_accesslist.c') diff --git a/ot_accesslist.c b/ot_accesslist.c index 834cbec..d991c4e 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c @@ -59,7 +59,9 @@ static void accesslist_readfile( int sig ) { accesslist_filehandle = fopen( g_accesslist_filename, "r" ); 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; } @@ -154,4 +156,4 @@ int accesslist_isblessed( ot_ip6 ip, ot_permissions permissions ) { return 0; } -const char *g_version_accesslist_c = "$Source$: $Revision$\n"; +const char *g_version_accesslist_c = "$Source$: $Revision$\n"; \ No newline at end of file -- cgit v1.2.3