if (fgValidatePath(file, false).empty()) {
SG_LOG(SG_IO, SG_ALERT, "loadxml: reading '" << file.str() << "' denied "
- "(unauthorized access)");
+ "(unauthorized directory - authorization no longer follows symlinks; to authorize reading additional directories, add them to --fg-aircraft)");
return false;
}
if (fgValidatePath(file, true).empty()) {
SG_LOG(SG_IO, SG_ALERT, "savexml: writing to '" << file.str() << "' denied "
- "(unauthorized access)");
+ "(unauthorized directory - authorization no longer follows symlinks)");
return false;
}
strcmp(modestr, "rb") && strcmp(modestr, "r"));
if(filename.empty()) {
naRuntimeError(c, "open(): reading/writing '%s' denied "
- "(unauthorized access)", naStr_data(file));
+ "(unauthorized directory - authorization no longer follows symlinks; to authorize reading additional directories, add them to --fg-aircraft)", naStr_data(file));
return naNil();
}
f = fopen(filename.c_str(), modestr);
std::string file = fgValidatePath(naStr_data(args[0]), false);
if(file.empty()) {
naRuntimeError(c, "parsexml(): reading '%s' denied "
- "(unauthorized access)", naStr_data(args[0]));
+ "(unauthorized directory - authorization no longer follows symlinks; to authorize reading additional directories, add them to --fg-aircraft)", naStr_data(args[0]));
return naNil();
}
std::ifstream input(file.c_str());