diff options
author | erdgeist <> | 2009-07-14 13:14:45 +0000 |
---|---|---|
committer | erdgeist <> | 2009-07-14 13:14:45 +0000 |
commit | d729c88d8843de6d78639b1fbfb85512e3049f27 (patch) | |
tree | 30e0ee67417cf10fe82bb68f11a1642c961d55d8 | |
parent | 3afbbc37d0d3d60d7d49838130761271273ed2ca (diff) |
Be more verbose if the accesslist can not be found
-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 |