const char *safefile(const char *filename)
{
- static boolean onetime = TRUE;
+ static bool onetime = true;
static char *pathlist = NULL;
static size_t maxdirlen;
static char** dirs;
"file loading is disabled because the environment contains SERVER_NAME=\"%s\"\n"
"and the GV_FILE_PATH variable is unset or empty.\n",
HTTPServerEnVar);
- onetime = FALSE;
+ onetime = false;
}
return NULL;
}
agerr(AGWARN, "Path provided to file: \"%s\" has been ignored"
" because files are only permitted to be loaded from the directories in \"%s\""
" when running in an http server.\n", filename, Gvfilepath);
- onetime = FALSE;
+ onetime = false;
}
return findPath (dirs, maxdirlen, str);