Bug #2319 » 2319_Part2.patch
| server/gamehand.c | ||
|---|---|---|
|
struct section_file *secfile;
|
||
|
const char *token = NULL;
|
||
|
bool you_have_hack = FALSE;
|
||
|
struct stat buf;
|
||
|
/* does file exist? */
|
||
|
if (fc_stat(get_challenge_fullname(pc), &buf) != 0) {
|
||
|
log_debug("Error reading '%s':\n%s", get_challenge_fullname(pc),
|
||
|
fc_strerror(fc_get_errno()));
|
||
|
}
|
||
|
if ((secfile = secfile_load(get_challenge_fullname(pc), FALSE))) {
|
||
|
token = secfile_lookup_str(secfile, "challenge.token");
|
||