diff options
-rw-r--r-- | ot_accesslist.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 ) { | |||
59 | accesslist_filehandle = fopen( g_accesslist_filename, "r" ); | 59 | accesslist_filehandle = fopen( g_accesslist_filename, "r" ); |
60 | 60 | ||
61 | if( accesslist_filehandle == NULL ) { | 61 | if( accesslist_filehandle == NULL ) { |
62 | fprintf( stderr, "Warning: Can't open accesslist file: %s (but will try to create it later, if necessary and possible).", g_accesslist_filename ); | 62 | char *wd = getcwd( NULL, 0 ); |
63 | 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 ); | ||
64 | free( wd ); | ||
63 | return; | 65 | return; |
64 | } | 66 | } |
65 | 67 | ||
@@ -154,4 +156,4 @@ int accesslist_isblessed( ot_ip6 ip, ot_permissions permissions ) { | |||
154 | return 0; | 156 | return 0; |
155 | } | 157 | } |
156 | 158 | ||
157 | const char *g_version_accesslist_c = "$Source$: $Revision$\n"; | 159 | const char *g_version_accesslist_c = "$Source$: $Revision$\n"; \ No newline at end of file |