diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -155,6 +155,9 @@ int user_open(snac *snac, const char *uid) | |||
| 155 | if ((f = fopen(cfg_file, "r")) != NULL) { | 155 | if ((f = fopen(cfg_file, "r")) != NULL) { |
| 156 | xs *cfg_data; | 156 | xs *cfg_data; |
| 157 | 157 | ||
| 158 | // if (fileno(f) > 100) | ||
| 159 | // snac_log(snac, xs_fmt("CAUTION: fileno() > 100")); | ||
| 160 | |||
| 158 | /* read full config file */ | 161 | /* read full config file */ |
| 159 | cfg_data = xs_readall(f); | 162 | cfg_data = xs_readall(f); |
| 160 | fclose(f); | 163 | fclose(f); |
| @@ -186,7 +189,7 @@ int user_open(snac *snac, const char *uid) | |||
| 186 | srv_debug(2, xs_fmt("error opening '%s'", cfg_file)); | 189 | srv_debug(2, xs_fmt("error opening '%s'", cfg_file)); |
| 187 | } | 190 | } |
| 188 | else | 191 | else |
| 189 | srv_log(xs_fmt("invalid user '%s'", uid)); | 192 | srv_debug(1, xs_fmt("invalid user '%s'", uid)); |
| 190 | 193 | ||
| 191 | if (!ret) | 194 | if (!ret) |
| 192 | user_free(snac); | 195 | user_free(snac); |